unit-4
unit-4
1) a). How deadlock can be detected? Explain any one deadlock detection algorithm.
b) What is a Disk? Give the Overview of Disk Structure.
2) a) Elaborate on the necessary and sufficient conditions for deadlock occurrence.
b) Give the comparison of various disk scheduling algorithms.
3) a) How Deadlock Recovery can be done? Explain with a suitable example.
b) Explain about RAID Structure along with its merits and demerits.
4) a) Explain Ostrich Algorithm with an example.
b) How File Systems are Managed and optimized? Explain.
5) a) How does resource allocation graph support Deadlock Avoidance? Explain
b) Explain in detail about the necessity of File System Optimization.
6) a) Explain briefly about Deadlock Recovery.
b) Distinguish between single level, two level and tree structured directories.
7) a) Compare SCAN and C-SCAN disc scheduling algorithms.
b) Explain indexed file allocation method with an example.
8) a) How to recover from deadlock situations? Explain.
b) Discuss about File system Implementation in detail
9) a) What is Deadlock and what are its four necessary conditions? Specify the difference
between Deadlock and Starvation.
b) Briefly explain about Single-level, Two-level and Tree-Structured directory
implementations.
10 ) a) What is the need for page replacement in paging? Describe any 3 page replacement
algorithms with examples.
b) Explain about Memory-mapped files and its types.
11) a) Explain Banker’s algorithm with an example.
b) Consider a disk queue with requests for I/O to blocks on cylinders 98, 183, 41, 122, 14,
124, 65, 67. The head is initially at cylinder number 53. The cylinders are numbered from 0
to 199. Find out the total head movement (in number of cylinders) incurred while servicing
these requests with respect to SSTF and CLOOK algorithms.
12) a) Why Ostrich algorithm is considered the best solution for deadlock handling? Explain
the Ostrich algorithm.
b) Explain the following i) File System implementation ii) Stable storage implementation
13) a) Discuss the different ways of aborting a process in order to eliminate deadlocks.
b) Suppose the following disk request sequence (track numbers) for a disk with 200 tracks is
given: 82,170,43,140,24,16,190. Assume that the initial position of the R/W head is on track
50. Calculate the Seek Time for SSTF, SCAN, LOOK.
14) a) Explain and compare the FCFS and SSTF disk scheduling algorithms. [7M] b) Discuss
the different levels of RAID configuration.
15) Consider a system that contains five processes P1, P2, P3, P4, P5 and the three resource
types A, B and C. Following are the resources types: A has 10, B has 5 and the resource type
C has 7 instances.