CSC264 Operating Systems

Operating Systems TU Board 2082 question paper

12 questionsSit this paper (timed)

Tribhuvan University

Bachelor of Science in Computer Science and Information Technology

Semester 4 · TU Board 2082

Course Title: Operating Systems (CSC264)

Full Marks: 60Pass Marks: 24Time: 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.

Group A

Attempt any TWO(2 × 10 = 20)

  1. 1.

    Explain the differences between deadlock, livelock and starvation. A system has four processes and five allocated resources. Given the following current allocation and maximum needs, find the smallest value of x for which this is a safe state:

    10
  2. 2.

    How are files implemented using linked list allocation? How many disk operations are needed to fetch the i-node for a file with the path name /usr/ast/courses/os/handout.t? Assume the i-node for the root directory is in memory, but nothing else along the path is in memory. Also assume that all directories fit in one disk block.

    10
  3. 3.

    If a disk has double interleaving, does it also need cylinder skew in order to avoid missing data when making a track-to-track seek? Justify your answer. Consider a disk queue with requests for I/O to blocks on cylinders 24, 90, 133, 43, 188. The head is initially at cylinder number 100 and the cylinders are numbered from 0 to 199. Calculate the total head movement for servicing the requests using FCFS, SSTF and CSCAN.

    10

Group B

Attempt any EIGHT(8 × 5 = 40)

  1. 4.

    List and describe two main functions of an operating system.

    5
  2. 5.

    Define segmentation. Why do we need multiple queues in process scheduling?

    5
  3. 6.

    What do you mean by open source operating systems? Why do you think the designers of Linux made it impossible for a process to send a signal to another process that is not in its process group?

    5
  4. 7.

    During implementing mutual exclusion, how can you solve the problem of busy wait? Explain.

    5
  5. 8.

    What is race condition? Explain how time quantum value and context switching time affect each other, in a round-robin scheduling algorithm.

    5
  6. 9.

    Five batch jobs A, B, C, D and E, with estimated running times 10, 6, 2, 4 and 8 minutes respectively, arrived at the same time. Determine the average turnaround time for the scheduling algorithms FCFS and SJF.

    5
  7. 10.

    Given the page reference string: 1, 2, 3, 4, 2, 1, 5, 6, 2, 1, 2, 3, 7, 6, 3, 2, 1, 2, 3, 6, compute the number of page faults for the FIFO page replacement algorithm.

    5
  8. 11.

    What is Belady's anomaly? For the decimal virtual addresses 20000, 32768, 60000, compute the virtual page number and offset for a 4-KB page and for an 8-KB page.

    5
  9. 12.

    Differentiate between:

    • a) Preemptive and non-preemptive scheduling

    • b) Physical address and logical address

    5

— The End —