All mock tests are FREE till 31 December — register to save your progress

Identify the correct statement(s) from the following with respect to Spinlock Semaphores
A. The name refers to busy waiting semaphores.
B. They are not useful when the locks are to be held for a short duration of time.
C. It may require multiple context switches when a process waits on a lock.
D. They are often employed on Uniprocessor systems.
Choose the correct answer from the options given below:

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: A. A Only

Explanation

A spinlock 'spins' (busy-waits), so A is true. Spinlocks are useful precisely when locks are held for short durations (B false), they avoid context switches altogether (C false), and they are employed on multiprocessor systems, not uniprocessors (D false).

More System Software and Operating System questions