unsigned get_priority_class(handle process)
This function obtains the dispatching priority class of a process.
The handle of the process whose priority class is being queried. The handle must have access process_access::get_information.
|An error occurred.
|A value from the enumeration priority_class.
Each thread has a base priority level that is determined by the priority value of the thread and the priority value of the process. The operating system uses the base priority level of all executable threads to select which thread obtains the next time slice. Threads are scheduled in a round robin fashion at each priority level. Only when there are no threads of a higher level ready for execution will threads at a lower level be scheduled.
For a table that shows the base priority levels for each combination of priority class and thread priority value, see enumeration priority_class.