Ask Question

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

+2
Answers (1)
  1. 6 March, 16:22
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers