1. How can we use semaphores to implement condition variables

2. Consider a system with 10 tape disk drives and 3 processes P1, P2, and P3. The table below gives a snapshot of the system at a point in time. Formally show whether the system is in the safe state.

   Process

   Maximum Needs

  Current Needs

    P1

   10

   5

   P2

   4

   2

    P3

   5

   3



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *