Operating Systems - End Semester Examination - 2023
Operating Systems
Instructions:
- The marks are indicated in the right-hand margin.
- There are NINE questions in this paper.
- Attempt FIVE questions in all.
- Question No. 1 is compulsory.
-
A computer system has 9 tape drives, with \( n \) processes competing for them. Each process may need 3 tape drives. The maximum value of \( n \) for which the system is guaranteed to be deadlock free is
-
Which of the following page replacement algorithms suffers from Belady's anomaly?
-
Scheduling a process from ready Queue to CPU is done by
-
The time to move the disk arm to the desired cylinder in hard disk is known as
-
Compaction is used to solve the problem of
-
__________ is a technique of improving the priority of process waiting in queue for CPU allocation.
-
The CPU utilization is low when the system is
-
When a process waits indefinitely for some resources which are being used by other processes, it is called
-
Fork is used to
-
Which one of the following is the deadlock avoidance algorithm?
-
Explain the concept of a process. With the help of a state transition diagram, discuss the various process states.
-
Describe the differences among short term, medium-term, and long-term scheduling.
-
What are the various allocation policies in variable partition multiprogramming? Explain the differences between internal and external fragmentations.
-
What do you understand by address binding? Explain the various address binding schemes.
-
What are the differences between user-level threads and kernel-level threads? Under what circumstances is one type better than the other?
-
What resources are used when a thread is created? How do they differ from those used when a process is created?
-
Describe the actions taken by a kernel to context switch between kernel-level threads.
-
What do you understand by deadlock? Discuss the methods to avoid deadlock.
-
State and explain the necessary and sufficient conditions for a deadlock.
-
Consider the following process with the given table:
Process Arrival Time Burst Time P1 0.0 7 P2 2.0 4 P3 4.0 1 P4 5.0 4 Considering non-preemptive and preemptive SJF algorithm, find out average waiting time and average turnaround time in both cases.
-
What do you mean by critical section problem? Discuss Peterson's solution for critical section problem.
-
Consider the following page reference string :
7, 0, 1, 2, 0, 3, 0, 4, 2, 3, 0, 3, 2, 1, 2, 0, 1, 7, 0, 1
How many page faults would occur for the following replacement algorithms? Assuming 3 frames are available. Also assume that initially none of pages in main memory.
(i) Optimal replacement
(ii) FIFO replacement
-
Suppose a disk drive has 300 cylinders, numbered 0 to 299. The current head position of the disk is at 90. The queue of pending requests, in FIFO order is 36, 79, 15, 120, 199, 270, 89, 170. Calculate the average cylinder movements for Shortest-Seek Time First (SSTF) algorithm. Mention the disadvantages of SSTF.
-
Compare and contrast between linked and indexed disk allocation strategies.
-
I-node
-
Segmentation
-
Thrashing
-
Process Control Block