windows
1 process
SetPriorityClass (GetCurrentProcess(),BELOW_NORMAL_PRIORITY_CLASS);2. threadSetThreadPriority(m_hThread,THREAD_PRIORITY_HIGHEST);