Operating System - B.Tech 4th Semester Examination, 2024
Operating System
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 _____ process is moved to the ready state when its time quantum expires.
-
Which of the following is also called job scheduler?
-
Compaction is used to solve the problem of
-
Which process can be affected by other processes executing in the system?
-
What is the drawback of banker's algorithm?
-
An I/O port typically consists of four registers- status, control, _____ and _____ registers.
-
The address loaded into the memory address register of the memory is referred to as
-
Consider a disk queue with requests for I/O to blocks on cylinders: 98, 183, 37, 122, 14, 124, 65, 67. Considering FCFS (first cum first served) scheduling, the total number of head movements is, if the disk head is initially at 53 is?
-
The Trap mode bit changes from 0 to 1 when _____ mode switches to _____ mode.
-
Waiting Time is calculated as
-
Define Thread? List some of the benefits of multithreading. Demonstrate the three methods to implement Threads.
-
Assume the following workload in a system:
Process Arrival Time Burst Time P0 1 3 P1 0 6 P2 3 2 P3 4 7 P4 2 8 P5 6 5 Illustrating the execution of these job using Round Robin Scheduling algorithm calculate when given Time Quantum = 3:
(i) Average Turn Around Time
(ii) Average Waiting Time
-
Differentiate between:
(i) User level Thread and Kernel level Thread
(ii) Contiguous and Indexed allocation method
(iii) Preemptive scheduling and Non-preemptive scheduling -
How is a process different from a program? With an example explain why Process synchronization is necessary in multiprocessing operating system?
-
Describe the techniques for recovery from deadlock? Explain briefly resource allocation graph with examples.
-
Consider a disk queue with requests for I/O to blocks on cylinders: 98, 183, 37, 122, 14, 124, 65, 67. Considering SSTF (shortest seek time first) scheduling, the total number of head movements is, if the disk head is initially at 53 is?
-
What is the difference between fixed partition and variable partition also explains the need of compaction.
-
What is virtual memory? How is it implemented? Explain TLB in virtual memory with neat diagram.
-
What is Reader-Writer problem? Explain how Semaphore is used to resolve the problem of process synchronization.
-
What is Belady's Anomaly? Why LRU and Optimal Page Replacement algorithm doesn't suffer from this problem.
-
Compare and contrast Deadlock Prevention and Deadlock Avoidance. Can a system be in a state that is neither deadlock nor safe? If so, give an example. If not, prove that all states are either deadlock or safe.
-
Consider the following page reference string: 3, 4, 2, 1, 5, 5, 6, 2, 1, 2, 3, 7, 6, 3, 3, 2, 1, 2, 3, 6. Compare the page faults occur for the following replacement algorithms using four frames? Assume, initially all the frames are empty.
(i) LRU replacement
(ii) FIFO Replacement