例如,高优先权执行绪处理时间紧急的工作,而低优先权执行绪执行其他工作。
For example, a high-priority thread manages time-critical tasks, and a low-priority thread performs other tasks.
如果较高优先权的执行绪成为可执行时,则会优先执行较低优先权的执行绪,并允许再次执行较高优先权的执行绪。
If a higher priority thread becomes runnable, the lower priority thread is preempted and the higher priority thread is allowed to execute once again.
如果较高优先权的执行绪成为可执行时,则会优先执行较低优先权的执行绪,并允许再次执行较高优先权的执行绪。
If a higher priority thread becomes runnable, the lower priority thread is preempted and the higher priority thread is allowed to execute once again.
应用推荐