NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ProcessThread Properties

The properties of the ProcessThread class are listed below. For a complete list of ProcessThread class members, see the ProcessThread Members topic.

Public:

BasePriority Returns the base priority of the thread which is computed by combining the process priority class with the priority level of the associated thread.
CurrentPriority The current priority indicates the actual priority of the associated thread, which may deviate from the base priority based on how the OS is currently scheduling the thread.
Id Returns the unique identifier for the associated thread.
IdealProcessor Sets the process that this thread would ideally like to run on.
PriorityBoostEnabled Returns or sets whether this thread would like a priority boost if the user interacts with user interface associated with this thread.
PriorityLevel Returns or sets the priority level of the associated thread. The priority level is not an absolute level, but instead contributes to the actual thread priority by considering the priority class of the process.
PrivilegedProcessorTime Returns the amount of time the thread has spent running code inside the operating system core.
ProcessorAffinity Sets which processors the associated thread is allowed to be scheduled to run on. Each processor is represented as a bit: bit 0 is processor one, bit 1 is processor two, etc. For example, the value 1 means run on processor one, 2 means run on processor two, 3 means run on processor one or two.
Site (inherited from Component) Gets or sets the site of the Component.
StartAddress Returns the memory address of the function that was called when the associated thread was started.
StartTime Returns the time the associated thread was started.
ThreadState Returns the current state of the associated thread, e.g. is it running, waiting, etc.
TotalProcessorTime Returns the amount of time the associated thread has spent utilizing the CPU. It is the sum of the UserProcessorTime and PrivilegedProcessorTime.
UserProcessorTime Returns the amount of time the associated thread has spent running code inside the application (not the operating system core).
WaitReason Returns the reason the associated thread is waiting, if any.

See Also

ProcessThread Class | System.Diagnostics Namespace