那么,为什么不提高写线程的优先级?
线程的优先级只是一个简单的数字;
将id设置为0来修改当前进程(或线程)的优先级。
Set id to 0 to change the current process (or thread) priority.
每个线程都按固定顺序进入,而且每个线程都有同样的优先级。
Every thread is entered in fixed order, and each has an identical priority.
线程的最终绝对优先级等于它所赋的绝对优先级。
The resulting absolute priority of a thread is the same as the value assigned here.
线程的最终绝对优先级等于它所赋的绝对优先级。
The resulting absolute priority of a thread is the same as the value assigned here.
应用推荐