Operating Systems
Full Marks: 60
Pass Marks: 24
Time: 3 hours
Candidates are required to give their answers in their own words as far as practicable. The figures in the margin indicate full marks.
Attempt any two questions:
Explain “race condition” and also state how process synchronization is handled using semaphore? Explain with algorithm.
OR
Suppose three peoples are in a line waiting for a department store to open for “the big sale”. When the door opens, all three rush the door, but the door is not big enough for all them to pass through at once. Describe a solution for addressing this deadlock that will allow three peoples to pass through the door. Which of the 4 necessary deadlock conditions does your solution break? Explain.
Create the following page reference string, 1, 3, 5, 4, 7, 1, 5, 6, 1, 2, 3, 7, 6, 3, 4, 1, 3, 8. How many page faults would occur for each of the following page replacement algorithm assuming 3 frames?
Consider following set of processes, with the length of the CPU-burst time and arrival time given in millisecond:
| Process | Burst time | Arrival time |
|---|---|---|
| P1 | 10 | 0 |
| P2 | 15 | 2 |
| P3 | 22 | 3 |
| P4 | 16 | 5 |
| P5 | 5 | 6 |
For the given data, draw Gantt charts that illustrate the execution of these processes using SJF and Robin algorithms with quantum 4 milliseconds.
Attempt any eight questions:
This page was printed from BSc CSIT Nepal (https://bsccsitnepal.com)