in Operating System
1,664 views
0 votes
0 votes
Can a thread ever be preempted by a clock interrupt? If so, under what circumstances? If not, why not?
in Operating System
by
1.7k 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.

by

Related questions