Question: Assume there are three processors P 1 , P 2 , and P 3 in the spin lock scheme. P 1 starts with the lock
Assume there are three processors P P and P in the "spin lock" scheme. P starts with the lock and stores into the lock. Then P exits and unlocks the lock. P and P race to see which reads the unlocked value first. Assume that P is satisfied and enters the critical section, which of the following operations is correct?
Group of answer choices
P stores into the lock
P starts testing and spinning
P stops spinning
P reads the lock value once
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
