Question

Which of the following statements about the Test-and-Set Lock (TS

  • L instruction is CORRECT?
A It ensures mutual exclusion by atomically testing and setting a lock variable
B It is a non-atomic operation used for memory allocation
C It is used only for process scheduling
D It guarantees absence of starvation in all cases
E It allows multiple processes to enter the critical section simultaneously
Practice Next

Relevant for Exams:

Hey! Ask a query