Chapter 2: Q45E (page 173)
Question: Using your code from Exercise 2.43 as an example, explain what happens when two processors begin to execute this critical section at the same time, assuming that each processor executed exactly one instruction per cycle.
Short Answer
Suppose the two processors begin to execute this critical section at the same time, assuming that each processor executed exactly one instruction per cycle. In that case, the code can be executed completely without reaching SC instruction. If only one processor executes SC, then it completes successfully. If both processors reach SC in the same cycle, only one will complete, and the other will fail.