Set Process and thread Priority in C++
windows
1 process
SetPriorityClass (GetCurrentProcess(),BELOW_NORMAL_PRIORITY_CLASS);
2. thread
SetThreadPriority(m_hThread,THREAD_PRIORITY_HIGHEST);
windows
1 process
SetPriorityClass (GetCurrentProcess(),BELOW_NORMAL_PRIORITY_CLASS);
2. thread
SetThreadPriority(m_hThread,THREAD_PRIORITY_HIGHEST);