Question

    Which of the following synchronization mechanisms

    provides a more structured approach to synchronization, allowing only one thread to access a resource at a time?
    A Semaphore Correct Answer Incorrect Answer
    B Mutex Correct Answer Incorrect Answer
    C Spinlock Correct Answer Incorrect Answer
    D Barrier Correct Answer Incorrect Answer

    Solution

    Mutex

    Practice Next

    Relevant for Exams: