What is voluntary preemption?
问题 What is voluntary preemption? I only know that it's a concept in scheduling. 回答1: It depends a little bit on the OS. In some RTOS, voluntary preemption means that the running process declares points where it can be preempted (where otherwise it would run until completion). Another way to think of this variant is that of a yield in a coroutine . This is in contrast to most desktop OS where the kernel determines preemption. Keep in mind that some RTOS do not have the concept of a "user mode".