1. Suppose proposed critical section entry/exit routines are defined as follows using a shared variable locked that is initialized to zero (unlocked): entry(int lock) f /I assume TSL generates an assembler // test and set lock instruction while (TSL (lock)) exit(int lock) ( lock 0; / reset lock Does this implement a critical section? Justify your answer. Show transcribed image text
Expert Answer
An answer will be send to you shortly. . . . .