21CS404 Operating Systems
21CS404 Operating Systems
12.a. Discuss in detail about threads and various threading models. (13)
Or
12.b. Consider the following process with the CPU burst time given in milliseconds
Process Burst time Priority
P1 5 2
P2 1 1
P3 7 3
P4 1 4
P5 3 2
Processes are arrived in P1,P2,P3,P4,P5 order of all at time 0
i) Draw Gantt charts to show execution using FCFS, SJF (Non-Preemption), Priority (Non
Preemption) and RR (Quantum=2ms) Scheduling. (7)
ii) Also calculate the waiting time and Turnaround time. (6)
13.a. Explain bounded buffer problem and justify how to solve them from race condition. (13)
Or
13.b. Explain deadlock in detail with the system model and characterization. (13)
Or
16.b. Suppose that the head of moving head disk with 200 tracks numbered 0 to 199 is currently serving the
request at track 143 and has just finished a request at track 125.If the queue request is kept in FIFO
order,86, 147, 91, 177, 94, 150, 102, 175, 130What is the total head movement to satisfy these requests
for i) FCFS ii) SSFT iii) SCAN iv) C-SCAN v) LOOK vi) C LOOK disk scheduling algorithm.
(3+3+3+2+2+2)
Knowledge Level (Blooms Taxonomy)
K1 Remembering (Knowledge) K2 Understanding (Comprehension) K3 Applying (Application of Knowledge)
K4 Analyzing (Analysis) K5 Evaluating (Evaluation) K6 Creating (Synthesis)