Os 23
Os 23
II) What is the need of thread? Describe any four advantages of multithreading model.
Calculate the average waiting time and turnaround time for the following algorithm.
i)SJF with pre-emptive algorithm ii)RR with time slice 2.
III) What is mutual exclusion? How the semaphore is used to solve the critical section problem.
SECTION - 2
Q 4 Answer the following in Detail (Any 2) [6]
I) Explain various directory structure in detail.
III) Suppose a disk drive has 200 cylinders. The drive is currently serving request at 50, the queue of
pending request is 82,170,43,140,24,16,190 Starting from the current head position what is the total
distance that the disk arm moves to satisfy the entire pending request for each of the following disk
scheduling algorithm SCAN, C-SCAN, LOOK, C-LOOK
II) Write in detail about memory partitioning with fixed and dynamic partitioning with example.
III) Consider the Pages referenced by the CPU in the order are 6, 7, 8, 9, 6, 7, 1, 6, 7, 8, 9, 1. Find out the
page faults occur in following algorithm.
i) Optical Page replacement
ii) FIFO
iii) LRU