1,733 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

446
views
0 answers
0 votes
admin asked Oct 24, 2019
446 views
Suppose that an operating system does not have anything like the select system call to see in advance if it is safe to read from a file, pipe, or ... it possible to implement a threads package in user space under these conditions? Discuss.
1.4k
views
1 answers
0 votes
admin asked Oct 24, 2019
1,367 views
Consider a system in which threads are implemented entirely in user space, with the run-time system getting a clock interrupt once a second. Suppose that a clock ... system. What problem might occur? Can you suggest a way to solve it?
1.8k
views
1 answers
0 votes
admin asked Oct 24, 2019
1,801 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.
1.1k
views
1 answers
0 votes
admin asked Oct 25, 2019
1,131 views
How could an operating system that can disable interrupts implement semaphores?