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 PYQ2019Operating SystemCPU SchedulingNAT · 2 marks
Consider the following four processes with arrival times (in milliseconds) and their length of CPU bursts (in milliseconds) as shown below: …
Official PYQ2019Operating SystemFile SystemsNAT · 2 marks
The index node (inode) of a Unix -like file system has 1212 direct, one single-indirect and one double-indirect pointers. The disk block size is 44 kB, and the disk block address is 3232-bits long. The maximum possible file size is (rounded off to 11 decimal place) ____ GB
Official PYQ2018Operating SystemI/O SchedulingNAT · 2 marks
Consider a storage disk with 44 platters (numbered as 0,1,20, 1, 2 and 33), 200200 cylinders (numbered as 0,1,…,1990, 1, … , 199), and 256256 sectors per track (numbered as 0,1,…2550, 1, … 255). The following 66 disk requests of the form [sector number, cylinder number, platter number] are received by the disk controller at the same time: …
Official PYQ2018Operating SystemDeadlockMCQ · 2 marks
In a system, there are three types of resources: E,FE, F and GG. Four processes P0P_0, P1P_1, P2P_2 and P3P_3 execute concurrently. At the outset, the processes have declared their maximum resource requirements using a matrix named Max as given below. For example, Max[P2,FP_2, F] is the maximum number of instances of FF that P2P_2 would …
Official PYQ2018Operating SystemConcurrency and SynchronizationMCQ · 2 marks
Consider the following solution to the producer-consumer synchronization problem. The shared buffer size is NN. Three semaphores emptyempty, fullfull and mutexmutex are defined with respective initial values of 0,N0, N and 11. Semaphore emptyempty denotes the number of available slots in the buffer, for the consumer to read from. Semaphore fullfull …
Official PYQ2018Operating SystemDeadlockNAT · 1 mark
Consider a system with 33 processes that share 44 instances of the same resource type. Each process can request a maximum of KK instances. Resources can be requested and releases only one at a time. The largest value of KK that will always avoid deadlock is ___
Official PYQ2018Operating SystemMemory Management and Virtual MemoryMCQ · 1 mark
Consider a process executing on an operating system that uses demand paging. The average time for a memory access in the system is MM units if the corresponding memory page is available in memory, and DD units if the memory access causes a page fault. It has been experimentally measured that the average time taken for a memory access in the process is …
Official PYQ2018Operating SystemSystem CallsMCQ · 1 mark
The following are some events that occur after a device controller issues an interrupt while process LL is under execution. P. The processor pushes the process status of LL onto the control stack Q. The processor finishes the execution of the current instruction R. The processor executes the interrupt service routine S. The processor pops the process …
Official PYQ2017Operating SystemMemory Management and Virtual MemoryMCQ · 1 mark
Recall that Belady's anomaly is that the page-fault rate may increase as the number of allocated frames increases. Now, consider the following statements: S1S_1: Random page replacement algorithm (where a page chosen at random is replaced) suffers from Belady's anomaly. S2S_2: LRU page replacement algorithm suffers from Belady's anomaly. Which of the …
Official PYQ2017Operating SystemConcurrency and SynchronizationMCQ · 1 mark
A multithreaded program PP executes with xx number of threads and uses yy number of locks for ensuring mutual exclusion while operating on shared memory locations. All locks in the program are non-reentrant, i.e., if a thread holds a lock ll, then it cannot re-acquire lock ll without releasing it. If a thread is unable to acquire a lock, it …
Official PYQ2017Operating SystemCPU SchedulingNAT · 1 mark
Consider the following CPU processes with arrival times (in milliseconds) and length of CPU bursts (in milliseconds) as given below: …
Official PYQ2017Operating SystemProcesses and ThreadsMCQ · 1 mark
Threads of a process share
Official PYQ2017Operating SystemCPU SchedulingNAT · 1 mark
Consider the set of process with arrival time (in milliseonds), CPU burst time (in millisecods) and priority (00 is the highest priority) shown below. None of the process have I/O burst time …
Official PYQ2017Operating SystemFile SystemsMCQ · 1 mark
In a file allocation system, which of the following allocation scheme(s) can be used if no external fragmentation is allowed? Contiguous Linked Indexed
Official PYQ2017Operating SystemDeadlockMCQ · 1 mark
A system shares 99 tape drives. The current allocation and maximum requirement of tape drives for that processes are shown below: …
Official PYQ2017Operating SystemProcesses and ThreadsMCQ · 1 mark
Which of the following is/are shared by all the threads in a process? Program counter Stack Address space Registers
Official PYQ2016Operating SystemConcurrency and SynchronizationMCQ · 1 mark
Consider the following proposed solution for the critical section problem. There are nn processes : P0....Pn−1P_0....P_{n-1}. In the code, function pmax\text{pmax} returns an integer not smaller than any of its arguments .For all i,t[i]i,t[i] is initialized to zero. Code for PiP_i; do { c[i]=1; t[i]= pmax (t[0],....,t[n-1])+1; c[i]=0; for every j != i in …
Official PYQ2016Operating SystemI/O SchedulingNAT · 1 mark
Cylinder a disk queue with requests for I/OI/O to blocks on cylinders 47,38,121,191,87,11,92,10.47, 38, 121, 191, 87, 11, 92, 10. The C-LOOK scheduling algorithm is used. The head is initially at cylinder number 6363, moving towards larger cylinder numbers on its servicing pass. The cylinders are numbered from 00 to 199199. The total head movement (in number of cylinders) …
Official PYQ2016Operating SystemMemory Management and Virtual MemoryNAT · 1 mark
Consider a computer system with ten physical page frames. The system is provided with an access sequence (a1,a2,....,a20,a1,a2,...a20)(a_{1}, a_{2},....,a_{20}, a_{1}, a_{2},...a_{20}), where each aia_{i} is a distinct virtual page number. The difference in the number of page faults between the last-in-first-out page replacement policy and the optimal page replacement policy …
Official PYQ2016Operating SystemMemory Management and Virtual MemoryNAT · 1 mark
Consider a computer system with 4040-bit virtual addressing and page size of sixteen kilobytes. If the computer system has a one-level page table per process and each page table entry requires 4848 bits, then the size of the per-process page table is __________ megabytes.