1,694 views

1 Answer

0 votes
0 votes

Answer:

It is not possible to preempt the User-level threads by the clock until the entire process' quantum is used. But it is possible to preempt the Kernel-level threads individually. In this case, the clock will interrupt the current thread if a thread is running for too long.

After this, the Kernel can pick any other thread from the same process for running, if it wants to run.

Related questions

0 votes
0 votes
1 answer
3
admin asked Oct 24, 2019
1,717 views
Why would a thread ever voluntarily give up the CPU by calling thread yield? After all, since there is no periodic clock interrupt, it may never get the CPU back.
0 votes
0 votes
1 answer
4