Skip to content

GATE CS Operating System questions

Practise Operating System questions for GATE CS. Explore official PYQs and original subject-wise quizzes, check answers and view available solutions. Free, no sign-in.

Trace the state changes explicitly. For scheduling, memory and synchronisation questions, record the given policy before calculating the result.

Subject, topic, year and type filter the full library. Match any choice within a filter, and all selected filter categories. Search, source and sort apply to this page.

20 on this page
Official PYQ2016Operating SystemCPU SchedulingMCQ · 1 mark
Consider an arbitrary set of CPU-bound processes with unequal CPU burst lengths submitted at the same time to a computer system. Which one of the following process scheduling algorithms would minimize the average waiting time in the ready queue?
Official PYQ2016Operating SystemCPU SchedulingNAT · 1 mark
Consider the following processes, with the arrival time and the length of the CPU burst given in milliseconds. The scheduling algorithm used is preemptive shortest remaining-time first. …
Official PYQ2016Operating SystemConcurrency and SynchronizationMCQ · 1 mark
Consider the following two-process synchronization solution. …
Official PYQ2016Operating SystemConcurrency and SynchronizationNAT · 1 mark
Consider a non-negative counting semaphore SS. The operation P(S)P(S) decrements SS, and V(S)V(S) increments SS. During an execution, 2020 P(S)P(S) operations and 1212 V(S)V(S) operations are issued in some order. The largest initial value of SS for which at least one P(S)P(S) operation will remain blocked is _______
Official PYQ2016Operating SystemMemory Management and Virtual MemoryMCQ · 1 mark
In which one of the following page replacement algorithms it is possible for the page fault rate to increase even when the number of allocated frames increases?
Official PYQ2015Operating SystemI/O SchedulingNAT · 1 mark
Consider a disk pack with a seek time of 44 milliseconds and rotational speed of 1000010000 rotations per minute (RPM). It has 600600 sectors per track and each sector can store 512512 bytes of data. Consider a file stored in the disk. The file contains 20002000 sectors. Assume that every sector access necessitates a seek, and the average rotational …
Official PYQ2015Operating SystemMemory Management and Virtual MemoryMCQ · 1 mark
Consider a main memory with five-page frames and the following sequence of page references: 3, 8, 2, 3, 9, 1, 6, 3, 8, 9, 3, 6, 2, 1, 3\text{3, 8, 2, 3, 9, 1, 6, 3, 8, 9, 3, 6, 2, 1, 3}. Which one of the following is true with respect to page replacement policies First In First Out (FIFO) and Least Recently Used (LRU)?
Official PYQ2015Operating SystemCPU SchedulingNAT · 1 mark
Consider a uniprocessor system executing three tasks T1,T2T_{1}, T_{2} and T3T_{3} each of which is composed of an infinite sequence of jobs (or instances) which arrive periodically at intervals of 3,73, 7 and 2020 milliseconds, respectively. The priority of each task is the inverse of its period, and the available tasks are scheduled in order of …
Official PYQ2015Operating SystemI/O SchedulingNAT · 1 mark
Suppose the following disk request sequence (track numbers) for a disk with 100100 tracks is given: 45,20,90,10,50,60,80,25,70.45, 20, 90, 10, 50, 60, 80, 25, 70. Assume that the initial position of the R/W head is on track 5050. The additional distance that will be traversed by the R/W head when the Shortest Seek Time First (SSTF) algorithm is used compared to the SCAN …
Official PYQ2015Operating SystemMemory Management and Virtual MemoryNAT · 1 mark
Consider a system with byte-addressable memory, 32-bit32\text{-bit} logical addresses, 4  kilobyte4\;\text{kilobyte} page size and page table entries of 4  bytes4\;\text{bytes} each. The size of the page table in the system in megabytes\text{megabytes} is___________.
Official PYQ2015Operating SystemConcurrency and SynchronizationNAT · 1 mark
The following two functions P1P1 and P2P2 that share a variable BB with an initial value of 22 execute concurrently. P1() { P2(){ C = B - 1; D = 2 * B;  B = 2 * C; B = D - 1;}}\begin{array}{|l|l|}\hline \text{P1() \{ } & \text{P2()\{} \\ \text{ C = B - 1;} & \text{ D = 2 * B; } \\ \text{ B = 2 * C;} & \text{ B = D - 1;} \\ \text{\}} & \text{\}} \\ \hline \end{array} The number of …
Official PYQ2015Operating SystemI/O SchedulingNAT · 1 mark
Consider a typical disk that rotates at 1500015000 rotations per minute (RPM) and has a transfer rate of 50×10650 \times 10^6 bytes/sec. If the average seek time of the disk is twice the average rotational delay and the controller's transfer time is 1010 times the disk transfer time, the average time (in milliseconds) to read or write a 512512-byte sector of …
Official PYQ2015Operating SystemMemory Management and Virtual MemoryNAT · 1 mark
A computer system implements 8  kilobyte8\;\text{kilobyte} pages and a 32-bit32\text{-bit} physical address space. Each page table entry contains a valid bit, a dirty bit, three permission bits, and the translation. If the maximum size of the page table of a process is 24  megabytes24\;\text{megabytes}, the length of the virtual address supported by the system is _______ …
Official PYQ2015Operating SystemMemory Management and Virtual MemoryMCQ · 1 mark
Consider 66 memory partitions of sizes 200200 KB\text{KB}, 400400 KB\text{KB}, 600600 KB\text{KB}, 500500 KB\text{KB}, 300300 KB\text{KB} and 250250 KB\text{KB}, where KB\text{KB}refers to kilobyte\text{kilobyte}. These partitions need to be allotted to four processes of sizes 357357 KB\text{KB}, 210210 KB\text{KB}, 468468 …
Official PYQ2015Operating SystemMemory Management and Virtual MemoryNAT · 1 mark
A computer system implements a 40  -bit40\;\text{-bit} virtual address, page size of 8  kilobytes8\;\text{kilobytes}, and a 128-entry128\text{-entry} translation look-aside buffer (TLB)\text{(TLB)} organized into 3232 sets each having 44 ways. Assume that the TLB\text{TLB} tag does not store any process id. The minimum length of the TLB\text{TLB} tag in bits is ______.
Official PYQ2015Operating SystemDeadlockMCQ · 1 mark
A system has 66 identical resources and NN processes competing for them. Each process can request at most 22 resources. Which one of the following values of NN could lead to a deadlock?
Official PYQ2015Operating SystemDeadlockMCQ · 1 mark
Consider the following policies for preventing deadlock in a system with mutually exclusive resources. Process should acquire all their resources at the beginning of execution. If any resource is not available, all resources acquired so far are released. The resources are numbered uniquely, and processes are allowed to request for resources only in …
Official PYQ2015Operating SystemCPU SchedulingMCQ · 1 mark
For the processes listed in the following table, which of the following scheduling schemes will give the lowest average turnaround time? …
Official PYQ2015Operating SystemConcurrency and SynchronizationMCQ · 1 mark
Two processes XX and YY need to access a critical section. Consider the following synchronization construct used by both the processes …
Official PYQ2015Operating SystemCPU SchedulingMCQ · 1 mark
The maximum number of processes that can be in Ready\textit{Ready} state for a computer system with nn CPUs is :