D
D
Dmitry Gusev2011-09-10 09:37:26
.NET
Dmitry Gusev, 2011-09-10 09:37:26

Maximum Thread Priority

Good day!
I ran into this problem in C#:
You need to set the priority of the created RealTime thread, but in the .Priority thread property, you can set the maximum to Highest,

//если есть Thread s = new Thread();
  s.Priority = ThreadPriority.Highest;   // RealTime или TimeCritical здесь нет, но есть следующее:
ThreadPriorityLevel.TimeCritical;         // Можно ли выставить такой приоритет для s ?

           

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Paulskit, 2011-09-10
@Paulskit

You need to use SetThreadPriority (Kernel32.dll).
Read about it:
geekswithblogs.net/SAmburan/archive/2008/09/04/give-your-thread-the-highest-priority-using-c.aspx
msdn.microsoft.com/en-us/library/ms685100 .aspx

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question