Question

    What is the purpose of a condition variable in synchronization?

    A To implement mutual exclusion Correct Answer Incorrect Answer
    B To signal when a process is done executing Correct Answer Incorrect Answer
    C To block a thread until a specific condition is met Correct Answer Incorrect Answer
    D To provide access to shared resources by multiple threads Correct Answer Incorrect Answer

    Solution

    To block a thread until a specific condition is met

    Practice Next

    Relevant for Exams: