Click or drag to resize
DigitalRuneParallelProcessorAffinity Property
Gets or sets the processor affinity of the worker threads.

Namespace: DigitalRune.Threading
Assembly: DigitalRune (in DigitalRune.dll) Version: 1.20.0.0 (1.20.1.14552)
Syntax
public static int[] ProcessorAffinity { get; set; }

Property Value

Type: Int32
The processor affinity of the worker threads. The default value is { 3, 4, 5, 1 }.
Exceptions
ExceptionCondition
ArgumentNullExceptionvalue is .
ArgumentException The specified array is empty or contains invalid values.
Remarks

In the .NET Compact Framework for Xbox 360 the processor affinity determines the processors on which a thread runs.

Note: The processor affinity is only relevant in the .NET Compact Framework for Xbox 360. Setting the processor affinity has no effect in Windows!

Important: The processor affinity needs to be set before any parallel tasks are created. Changing the processor affinity afterwards has no effect.

See Also