Ask Question

Explain why Windows and Linux implements multiple locking mechanisms. Describe the circumstances under which they use spinlocks, mutex locks, semaphores, and condition variables. In each case, explain why the mechanism is needed.

+2
Answers (1)
  1. 8 March, 06:27
    0
    The description for the given question is described in the explanation section below.

    Explanation:

    Depending on the needs of the device programmers these OS have various locking frameworks. Spinlocks become beneficial for preemptive multitasking processes during which a thread will operate in such an active loop instead of risking a rest queue latency. Mutexes become beneficial to utility lockers.

    Solaris 2 employs flexible mutexes, indicating something like this on preemptive multitasking computers, the mutex is introduced with either a spinning switch. Semaphores and state variations are much more effective methods for consistency where a commodity needs to be managed for such a prolonged period of time because spinning is unstable over a prolonged time.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Explain why Windows and Linux implements multiple locking mechanisms. Describe the circumstances under which they use spinlocks, mutex ...” 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