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:
What is race condition? Calculate Average Waiting and Average Turnaround time of the given set of processes in table below using SJF and RR scheduling algorithm. [Note: Quantum time for RR = 3]
| Process id | Arrival Time | Execution Time |
|---|---|---|
| A | 0 | 8 |
| B | 2 | 14 |
| C | 9 | 19 |
| D | 19 | 7 |
| E | 25 | 15 |
What is deadlock? Explain various conditions for deadlock. Discuss the Bankers algorithm of multiple resources for avoidance of deadlock with suitable example.
How physical address is generated from logical address? Explain the process of system call with suitable diagram.
Attempt any eight questions:
What is an operating system? Differentiate between time sharing and real time operating system.
How does process differ from program? Explain process state with the help of block diagram.
Explain how multithreading improve performance over a single threaded solution.
Describe how Peterson’s solution preserve mutual exclusion in process CR execution.
Given a references to the following pages by program,
1, 2, 3, 4, 2, 1, 5, 6, 2, 1, 2, 3, 7, 6, 3, 2, 1, 2, 3, 6.
How many page faults will occur if the program has three page frames available to it and uses LRU replacement?
What is deadlock? State the conditions necessary for deadlock to exist. Give reason, why all conditions are necessary.
What is Fragmentation? Differentiate between internal and external fragmentation.
How does DMA increase system concurrency? How does it complicate hardware design?
Write short notes on:
This page was printed from BSc CSIT Nepal (https://bsccsitnepal.com)