CS FundamentalsHardCapgemini · Cognizant GenC

A spinlock is built with an atomic test-and-set instruction. Which property does the plain version of this lock NOT guarantee?

  1. A. Mutual exclusion
  2. B. Progress
  3. C. Atomicity of the acquire operation
  4. D. Bounded waiting

Correct answer: D. Bounded waiting

Test-and-set gives mutual exclusion and progress, but a process can be unlucky and lose the race forever while others keep acquiring, so bounded waiting is not guaranteed.

More Operating Systems questions

Exams that ask this topic