What is a spinlock?

What is a spinlock?

  1. A.

    It is a type of semaphore

  2. B.

    It is a type of deadlock

  3. C.

    It is a type of lock which causes a thread trying to acquire it to simply wait in a loop ("spin") while repeatedly checking if the lock is available

  4. D.

    None of thSpinlock is a type of lock where a thread, on finding the lock being already held, doesn't block (or go to sleep). Instead, it repeatedly checks if the lock is available or not.e above

Attempted by 362 students.

Sign up free to check your answer

Sign up free

Explore the full course: Isro

Loading lesson…