Os Mid1 Assignment
Os Mid1 Assignment
(b) Mutliprogrammed
2. What is process? Classify the various steps involved in change of process state and also
3. Consider a set of processors whose arrival time and burst time are given below
P1 5 5
P2 4 6
P3 3 7
P4 1 9
P5 2 2
P6 6 3
If the CPU scheduling policy is round robin with time quantum 3sec. Calculate the average
waiting time and average turnaround time by using FCFS, SJF, Round Robin. (CO1)
following are the resources types A has 10,B has 5, C has 7 instances.
P2 200 322
P3 302 902
P4 211 222
P5 002 433
(c) What will happen if the resources request (1,0,0) for process P1? Can the system
waiting for D3. P2 is holding D3 and waiting for D1. P3 is holding D3 and waiting for D2.
Draw the resource allocation graph and wait for graph. Is the system in deadlock condition
or not? (CO5)