Bsc Csit Nepal

2073

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. How semaphore is used for the process synchronization? Do you think semaphore is the best solution for solving critical section problem? Explain using it in Producer-consumer problem.
  2. Define the first fit, best fit and worst fit algorithms. Given process placement order of 10 k, 4 k, 20 k, 18 k, 7 k, 9 k, 12 k and 15 k (in order). How would each of first-fit best fit and worst fit algorithms place processes of 12 k, 10 k, and 9 k (in order)? Which algorithm make the best use of memory?
  3. What do you mean by disk management? Explain the error handling and formatting operation on the disk.

Section B (8×5=40)

Short Questions:

Attempt any eight questions:

  1. Classify the following applications as batch-oriented or interactive and explain the reason

    • a) Word processing
    • b) Monthly salary with bank statements
    • c) Computing pi to a million decimal places
  2. What is thrashing? Explain the cause and solution for thrashing.

  3. Given references to the following pages by a 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 FIFO replacement?

  4. Discuss in detail the use of translation look aside buffer (TLB) in the process of paging. Support your answer with illustration.

  5. What is memory-mapped I/O? Explain with merits and demerits.

  6. Write short notes on:

    • a) Memory Compaction
    • b) Virtual Machines
  7. What do you mean by interrupt? Explain the working mechanism of interrupt controller.

  8. A disk queue has the following request to read tracks: 87, 170, 4, 57, 173, 32, 67 and 183. If disk head is initially at cylinder 90 and there are total 200 tracks then calculate total head movement using C-SCAN and C-LOOK algorithm.

  9. What are the scheduling criteria? How preemptive priority scheduling introduce starvation?