Ask Question
14 June, 02:22

What is the best kernel synchronization solution on multicore systems when a lock is held for brief periods?

a) mutex with thread suspension

b) disabling interrupts

c) spinlock with test and set

d) busy waiting for condition

+4
Answers (1)
  1. 14 June, 02:56
    0
    Answer: C) spin-lock with test and set

    Explanation:

    In spinlock, when a thread locks a spinlock then it continuously retrying locking until it succeeds. Spinlock is the lock that cause thread and continuously check that whether the lock are available or not for synchronization.

    So that is why spinlock is best synchronization solution as it is not allowing any another thread.

    On the other hand, in mutex thread try to lock a mutex and then, it automatically go to sleep mode before locking and immediate allow another thread to run.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “What is the best kernel synchronization solution on multicore systems when a lock is held for brief periods? a) mutex with thread ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers