Concurrency and Synchronization – Critical section problem, Peterson’s solution, semaphores, monitors

    Question 1: OS - Critical Section Problem

    What is the critical section problem in operating systems?

    Question 2: OS - Requirements of Critical Section Solution

    Which of the following is NOT one of the three essential requirements for solving the critical section problem?

    Question 3: OS - Peterson’s Solution

    What does Peterson’s Solution use to achieve mutual exclusion in the critical section problem?

    Question 4: OS - Peterson’s Limitations

    Why is Peterson’s Solution not widely used in modern systems?

    Question 5: OS - Semaphores

    What are semaphores used for in operating systems?

    Question 6: OS - Types of Semaphores

    Which of the following correctly describes the two types of semaphores?

    Question 7: OS - Semaphore Problem

    What issues can arise if semaphores are not used carefully?

    Question 8: OS - Monitors

    What is a monitor in process synchronization?

    Question 9: OS - Condition Variables in Monitors

    What is the purpose of condition variables in monitors?

    Question 10: OS - Monitors vs Semaphores

    Which of the following is a key advantage of monitors over semaphores?