Elective Operating System

Operating SystemPU Spring

a) What is Deadlock? Consider a system with four processes PO through P3 and three resources types A, B, C. Resource type A has 10 instances, B has 6 instances and type C has 8 instances. Suppose at…

15
  • a) What is Deadlock? Consider a system with four processes PO through P3 and three resources types A, B, C. Resource type A has 10 instances, B has 6 instances and type C has 8 instances. Suppose at a time tO, following snapshot of system has been taken. Is the system safe? If yes, then what is the safe sequence? Allocation Matrix Maximum Need Matrix [Process] A [B [TC] ante [P2__}1_|2_|2_] [Po [4 32 ne a Ee Ee . b) Consider following set of processes along with their burst time, en arrival time and priorities. Calculate average waiting time and average turnaround time using following scheduling. Also describe which one is the best algorithm and why?
  • i) SJF
  • ii) Priority (preemptive) iii, __ RR (Quantum size = 2ms [Process [Burst Tine | Anal Tine” Prony LS | ees cee a eS ee | aes 7 val ss
A worked answer is on its wayMeanwhile, read the Operating System notes for this topic.

Discussion

Loading…

More Operating System questions

All Operating System old questions