How can we change priority and what the levels of priority are

Q

How can we change priority and what the levels of priority are provided by .NET ?

✍: Guest

A

Thread Priority can be changed by using Threadname.Priority = ThreadPriority.Highest. In the sample provided look out for code where the second thread is ran with a high priority.
Following are different levels of Priority provided by .NET :-
ã ThreadPriority.Highest
ã ThreadPriority.AboveNormal
ã ThreadPriority.Normal
ã ThreadPriority.BelowNormal
ã ThreadPriority.Lowest

2007-10-22, 4894👍, 0💬