Question: Considering a system with five processes P 0 through P 4 and three resources types A , B , C . Resource type A has

Considering a system with five processes P0 through P4 and three resources types A,B,C. Resource type A has 9 instances, B has 6 instances and type C has 6 instances. Suppose at time t0 following snapshot of the system has been taken:
\table[[Process,Allocation,Max,Available],[A,B,C,A,B,C,A,B,C,],[P0,1,1,1,3,3,2,2,2,2,],[P1,2,1,1,4,3,1,,,,],[P2,1,1,1,2,1,1,,,,],[P3,0,1,0,1,2,2,,,,],[P4,3,0,1,3,3,4,,,,]]
By applying banker's algorithm
i. What will be the content of need matrix? ii. Is the system in safe state? If yes, then what is the safe sequence?
2. Consider the following page reference string:
1,3,2,3,4,2,1,3,4,2,1,2,5,1,3.
How many page faults would occur for the least recently used algorithm (LRU), assuming three frames?
3. Calculate average waiting time and draw Gantt chart for the following table using Shortest Job First Preemptive method.
\table[[Process,Burst Time,Arrival Time],[P1,5,0],[P2,9,1],[P3,3,2],[P4,6,3],[P5,4,4]]
Solve the above problem using SJF Non Preemptive and FCFS method also.
 Considering a system with five processes P0 through P4 and three

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!