Question: To make spin locks useful on a multi programmed multiprocessor, one might want to ensure that no process is ever preempted in the middle of
To make spin locks useful on a multi programmed multiprocessor, one might want to ensure that no process is ever preempted in the middle of a critical section. That way it would always be safe to spin in user space, because the process holding the lock would be guaranteed to be running on some other processor, rather than preempted and possibly in need of the current processor. Explain why an operating system designer might not want to give user processes the ability to disable preemption arbitrarily.
Step by Step Solution
3.43 Rating (172 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
