Tribhuvan University

Institute of Science and Technology

2080

Bachelor Level / fourth-semester / Science

Computer Science and Information Technology( CSC264 )

Operating System

Full Marks: 60 + 20 + 20

Pass Marks: 24 + 8 + 8

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

Attempt any two questions.

1

When does the request switch from user mode to kernel mode? Give answer with an example. Find the average waiting time and turnaround time for the process scheduling algorithms FCFS, Priority and RR (Quantum=2) in the following given dataset.

Process Arrival Time Burst Time Priority
P0 0 5 1 (Lowest)
P1 1 3 4 (Highest)
P2 2 8 2
P3 3 6 3
2

How do you recognize critical section? Why do we need to synchronise it? Consider the request for the page references 7,0,1,2,0,3,0,4,2,3,0,3,2. Find the number of page fault for FIFO and LRU with 4 page frames.

3

Can deadlock occur in case of preemptive resources? List the conditions for deadlock. Define allocation graph with example.

Section B

Attempt any eight questions

4

Explain different memory allocation strategies.

5

Suppose a disk has 201 cylinders, numbered from 0 to 200. At same time the disk arm is at cylinder 10, and there is a queue of disk access requests for cylinders 30, 85, 90, 100, 105, 110, 135, and 145. Find the total seek time for the disk scheduling algorithm FCFS and SSTF. Assume the head is moving inward.

6

What are the advantages of using interrupt? Describe.

7

Differentiate between contiguous and linked list file allocation technique.

8

Differentiate between paging and segmentation.

9

What does Belady’s anomaly mean? What are the benefits of multiprogramming over uniprogramming?

10

How can we achieve mutual exclusion? Describe.

11

What makes thread different with process? Draw the transition diagram between states of a process.

12

When does a page fault ocur? Give a structure of a page table.