Bsc Csit Nepal

2072

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.

Section A (2×10=20)

Attempt any two questions:

  1. 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 idArrival TimeExecution Time
    A08
    B214
    C919
    D197
    E2515
  2. What is deadlock? Explain various conditions for deadlock. Discuss the Bankers algorithm of multiple resources for avoidance of deadlock with suitable example.

  3. How physical address is generated from logical address? Explain the process of system call with suitable diagram.

Section B (8×5=40)

Attempt any eight questions:

  1. What is an operating system? Differentiate between time sharing and real time operating system.

  2. How does process differ from program? Explain process state with the help of block diagram.

  3. Explain how multithreading improve performance over a single threaded solution.

  4. Describe how Peterson’s solution preserve mutual exclusion in process CR execution.

  5. 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?

  6. What is deadlock? State the conditions necessary for deadlock to exist. Give reason, why all conditions are necessary.

  7. What is Fragmentation? Differentiate between internal and external fragmentation.

  8. How does DMA increase system concurrency? How does it complicate hardware design?

  9. Write short notes on:

    • (a) Disk formatting
    • (b) Memory Mapped I/O