Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Distinguish between formal and informal reports.

Answered: 1 week ago