Bsc CSIT Semester 4 – Operating System – Unit 3: Process Deadlocks (6 Hrs.)
Comprehensive questions and detailed answers for Unit 3: Process Deadlocks (6 Hrs.). Perfect for exam preparation and concept clarity.
Students working at individual PCs in a computer laboratory send their files to be printed by a server which spools the files on its hard disk.
Under what conditions may a deadlock occur if the disk space for print spool is limited?
How may the deadlock be avoided?
What do you understand by deadlock detection and recovery? Discuss.
What is deadlock? Explain various conditions for deadlock. Discuss the Bankers algorithm of multiple resources for avoidance of deadlock with suitable example.
What is deadlock? State the conditions necessary for deadlock to exist. Give reason, why all conditions are necessary.
Differentiate between deadlock and starvation? Discuss the process of detecting deadlocks when there are multiple resources of each type.
How unsafe state differs from deadlocked state? Consider follows initial state and identify wheather requested is and granted or denies for the given cases.
| Process | Has | Max |
|---|---|---|
| A | 2 | 6 |
| B | 1 | 5 |
| C | 2 | 3 |
| D | 3 | 8 |
Free = 2
- What will happen if process D request 1 resource?\
- What will happen if process A request 1 resource?
What is resource allocation graph? Explain the process of detecting deadlocks when there is single instance of each resources with suitable example?
How do you distinguish between deadlock and starvation ? Describe and Explain working mechanism of TLB.
Illustrate the term safe and unsafe state in deadlock prevention with scenario.
How do you think deadlock can be avoided? Explain.
Can deadlock occur in case of preemptive resources? List the conditions for deadlock. Define allocation graph with example.
Sample Questions
What do you understand by deadlock detection and recovery? Discuss.
What is deadlock? Explain various conditions for deadlock. Discuss the Bankers algorithm of multiple resources for avoidance of deadlock with suitable example.
What is deadlock? State the conditions necessary for deadlock to exist. Give reason, why all conditions are necessary.
Differentiate between deadlock and starvation? Discuss the process of detecting deadlocks when there are multiple resources of each type.
And more questions available on this page.