OPERATING SYSTEM ASSIGNMENT-2 Reader Writer Problem.

advertisement
OPERATING SYSTEM
ASSIGNMENT-2
Q1 Define RAID and Define disk management.
Q2 Explain deadlock detection and recovery
Q3 Explain deadlock prevention and avoidance.
Q4 Explain Critical Section and Semaphores.
Q5 Discuss the solution for Dining Philosopher problem, Bounded Buffer and
Reader Writer Problem.
Q6 Consider that a disk drive has 5000 cylinders,numbered 0 to 4999.The drive is
currently serving a request at cylinder 143 And the previous request was at
cylinder 125.The queue of pending request in FIFO is in order
86,1470,913,1774,948,1509,1022,1750,130
Starting from the current head position, what is the total distance that the disk
arm moves to satisfy all the pending request for each of the following disk
scheduling algorithms FCFS,SSTF,SCAN,C-SCAN,LOOK,C-LOOK.
Q7 Consider the system and solve using Banker’s Algorithm.
Allocation
Max
Available
P0
0012
0012
1520
P1
1000
1750
P2
1354
2356
P3
0632
0652
P4
0014
0656
a) What is the content of matrix need and is the system in a safe state?
Download