In the writing program. In order to make the program high efficiency. Sometimes it's a bit high CPU. The user experience here is not good enough to set the thread priority to take care of.
BOOL SetThreadPriority (
HANDLE hthread,//HANDLE to the thread
int npriority//thread priority level
);
Function description
Sets the priority of the specified thread
Parameter description
Hthread the thread handle to set
Npriority Priority parameter can be set to parameter
Thread_priority_above_normal one rank higher than the general priority
Thread_priority_below_normal is one grade lower than the average
Thread_priority_highest 2 levels higher than normal
Thread_priority_idle//This value has a good priority. The user experience is better. System IDLE process is using this.
Thread_priority_lowest 2 levels lower than normal
Thread_priority_normal General Grade
Thread_priority_time_critical
SetThreadPriority (GetCurrentThread (), thread_priority_idle); OK.
http://blog.csdn.net/yjwffgip456/article/details/43731553
The process consumes hundreds of CPU no card (never tried, when other programs run, the current program will run?) )