Düzenle

Aracılığıyla paylaş


SchedulingOptions Class

Definition

Options for configuring scheduler behavior.

public class SchedulingOptions
type SchedulingOptions = class
Public Class SchedulingOptions
Inheritance
SchedulingOptions

Constructors

SchedulingOptions()

Fields

DEFAULT_ACTIVATION_SCHEDULING_QUANTUM

The default value for ActivationSchedulingQuantum.

DEFAULT_ALLOW_CALL_CHAIN_REENTRANCY
DEFAULT_DELAY_WARNING_THRESHOLD

The default value for DelayWarningThreshold.

DEFAULT_ENABLE_WORKER_THREAD_INJECTION
DEFAULT_MAX_ACTIVE_THREADS
DEFAULT_MAX_PENDING_ITEMS_SOFT_LIMIT

The default value for MaxPendingWorkItemsSoftLimit.

DEFAULT_PERFORM_DEADLOCK_DETECTION
DEFAULT_TURN_WARNING_THRESHOLD

The default value for TurnWarningLengthThreshold.

Properties

ActivationSchedulingQuantum

Gets or sets the soft time limit on the duration of activation macro-turn (a number of micro-turns). If an activation was running its micro-turns longer than this, we will give up the thread. If this is set to zero or a negative number, then the full work queue is drained (MaxWorkItemsPerTurn allowing).

AllowCallChainReentrancy

Whether or not to allow reentrancy for calls within the same call chain.

DelayWarningThreshold

Gets or sets the work item queuing delay threshold, at which a warning log message is written. That is, if the delay between enqueuing the work item and executing the work item is greater than DelayWarningThreshold, a warning log is written.

EnableWorkerThreadInjection

For test use only. Do not alter from default in production services

MaxActiveThreads

The MaxActiveThreads attribute specifies the maximum number of simultaneous active threads the scheduler will allow. Generally this number should be roughly equal to the number of cores on the node.

MaxPendingWorkItemsSoftLimit

Gets or sets the per work group limit of how many items can be queued up before warnings are generated.

PerformDeadlockDetection

Whether or not to perform deadlock detection.

StoppedActivationWarningInterval

Gets or sets the period of time after which to log errors for tasks scheduled to stopped activations.

TurnWarningLengthThreshold

Gets or sets the soft time limit to generate trace warning when the micro-turn executes longer then this period in CPU.

Applies to