Bsc Csit Nepal

2066

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. Define the term semaphore. How does semaphore help in dining philosophers problem?

  2. Explain how file allocation table (FAT) manages the files. Mention the merits & demerits of FAT system. A 200 GB disk has 1-KB block size, calculate the size of the file allocation table if each entry of the table to be 3 bytes.

    OR

    Suppose that a disk has 100 cylinders, numbered 0 to 99. The drive is currently serving a request at cylinder 43, & previous request was at cylinder 25. The queue of pending request, in FIFO order is: 86, 70, 13, 74, 48, 9, 22, 50, 30. Starting from the current head position, what is the total distance (in cylinders) that the disk arm moves to satisfy all pending request for each of the following disk scheduling algorithms?

    • a) FCFS
    • b) SCAN
  3. Write short notes on:

    • a) Least recently used page replacement algorithm
    • b) Segmentation
    • c) Associative memory

Section B (8×5=40)

Attempt any eight questions:

  1. What is an operating system? Differentiate between time sharing & real time operating system.
  2. Why thread is necessary? In which circumstances user-level thread is better than Kernel level thread?
  3. Explain about hierarchical directory systems with diagrammatic examples.
  4. How can you define the term process scheduling? Differentiate between I/O bound process & CPU bound process.
  5. A system has two process & 3 resources. Each process needs a maximum of two resources, is deadlock possible? Explain with answer.
  6. What do you mean by interrupt? Explain the working mechanism of interrupt controller.
  7. Define the term indefinite postponement. How does it differ from deadlock?
  8. Explain the mapping of virtual address to real address under segmentation. Compare the throughput (overall performance) of SCAN with SSTF.