What are Spinlocks?
(a) CPU cycles wasting locks over critical sections of programs
(b) Locks that avoid time wastage in context switches
(c) Locks that work better on multiprocessor systems
(d) All of the mentioned
I had been asked this question in an internship interview.
My question is from Semaphores in division Process Synchronization of Operating System