Updated Ostut 2
Updated Ostut 2
Updated Ostut 2
TUTORIAL-II
Sem: 3rd SEM Sub Name: OPERATING SYSTEMS [BCS303] Date: 25/01/2024
5. Draw the Gnatt Chart and calculate average waiting time and turn around time for the
following snapshot of processes using i) FCFS ii) SJF iii) Priority iv)RR (2 ms) scheduling
algorithm.
If a request from process P2 arrives for (0, 0, 2) can the request be granted immediately.
9. Illustrate with examples the Peterson’s solution for critical section problem and prove that
mutual exclusion property is preserved.
10. Consider the following snapshot of a system:
Answer the following questions using the banker's algorithm:
a.What is the content of the matrix Need?
b. Is the system in a safe state?
If a request from process Pi arrives for (0, 4, 2, 0), can the request be granted immediately?