System.Diagnostics.ProcessThread.IdealProcessor Property

Sets the preferred processor for this thread to run on.

Syntax

[System.ComponentModel.Browsable(false)]
[System.MonoTODO]
public int IdealProcessor { set; }

Value

Documentation for this section has not yet been entered.

Remarks

The ProcessThread.IdealProcessor value is zero-based. In other words, to set the thread affinity for the first processor, set the property to zero.

The system schedules threads on their preferred processors whenever possible.

A process thread can migrate from processor to processor, with each migration reloading the processor cache. Specifying a processor for a thread can improve performance under heavy system loads by reducing the number of times the processor cache is reloaded.

Requirements

Namespace: System.Diagnostics
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0