[Solved] Why C#.Net only allows for 5 thread priorities to choose from? [closed]


Windows uses the process priority together with the thread priority to calculate the overall priority.
Once you know that, you can google for process priorities and perhaps you find Scheduling Priorities on MSDN.

I would highly appreciate if you could read the book Windows Internals 6th edition, part 1, which describes it in detail on page 410++.

In C# you can try

using System.Diagnostics;
using System.Threading;
Process.GetCurrentProcess().PriorityClass = ProcessPriorityClass.AboveNormal;
Thread.CurrentThread.Priority = ThreadPriority.Highest;

and look at the results with ProcessExplorer.

1

solved Why C#.Net only allows for 5 thread priorities to choose from? [closed]