This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!
ProcessThread Members
Public:
Properties
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. |
Methods
Dispose (inherited from Component) |
Disposes of the Component. |
Equals (inherited from Object) |
Determines whether the specified Object is the same instance as the current Object. Subclasses are expected to override this method to support value equality (not reference equality). |
GetContainer (inherited from Component) |
Returns the IContainer that contains the Component. |
GetDesignMode (inherited from Component) |
Gets a value indicating whether the Component is currently in design mode. |
GetHashCode (inherited from Object) |
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
GetServiceObject (inherited from Component) |
Returns an object representing a service provided by the Component. |
GetType (inherited from Object) |
Gets the Type of the Object. |
ResetIdealProcessor |
Resets the ideal processor so there is no ideal processor for this thread (e.g. any processor is ideal). |
ToString (inherited from Component) |
Returns a String containing the name of the Component, if any. This method should not be overridden. For internal use only. |
Protected:
Methods
Finalize (inherited from Object) |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by the Garbage Collector (GC). This method may be ignored by the runtime; therefore, necessary cleanup operations should be done elsewhere. |
MemberwiseClone (inherited from Object) |
Creates a shallow copy of the current Object. |
See Also
ProcessThread Class | System.Diagnostics Namespace