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 PYQ2009Operating SystemCPU SchedulingMCQ · 1 mark
In the following process state transition diagram for a uniprocessor system, assume that there are always some processes in the ready state: Now consider the following statements: If a process makes a transition DD, it would result in another process making transition AA immediately. A process P2P_2 in blocked state can make transition E while …
Official PYQ2009Operating SystemI/O SchedulingMCQ · 1 mark
Consider a disk system with 100100 cylinders. The requests to access the cylinders occur in following sequence: 4,34,10,7,19,73,2,15,6,204, 34, 10, 7, 19, 73, 2, 15, 6, 20 Assuming that the head is currently at cylinder 5050, what is the time taken to satisfy all requests if it takes 1  ms1\;\text{ms} to move from one cylinder to adjacent one and shortest seek time first …
Official PYQ2009Operating SystemDeadlockMCQ · 1 mark
Consider a system with 44 types of resources R1R1 (33 units), R2R2 (22 units), R3R3 (33 units), R4R4 (22 units). A non-preemptive resource allocation policy is used. At any given instance, a request is not entertained if it cannot be completely satisfied. Three processes P1P1, P2P2, P3P3 request the resources as follows if …
Official PYQ2009Operating SystemMemory Management and Virtual MemoryMCQ · 1 mark
The essential content(s) in each entry of a page table is / are
Official PYQ2009Operating SystemMemory Management and Virtual MemoryMCQ · 1 mark
In which one of the following page replacement policies, Belady's anomaly may occur?
Official PYQ2008Operating SystemMemory Management and Virtual MemoryMCQ · 1 mark
A processor uses 3636 bit physical address and 3232 bit virtual addresses, with a page frame size of 44 Kbytes. Each page table entry is of size 44 bytes. A three level page table is used for virtual to physical address translation, where the virtual address is used as follows: Bits 30−3130-31 are used to index into the first level page table. Bits …
Official PYQ2008Operating SystemSystem CallsMCQ · 1 mark
A process executes the following code for(i=0; i<n; i++) fork(); The total number of child processes created is
Official PYQ2008Operating SystemDeadlockMCQ · 1 mark
Which of the following is NOT true of deadlock prevention and deadlock avoidance schemes?
Official PYQ2008Operating SystemConcurrency and SynchronizationMCQ · 1 mark
The PP and VV operations on counting semaphores, where s is a counting semaphore, are defined as follows: P(s):P(s): s=s−1;s=s-1; If s<0s < 0 then wait; V(s):V(s): s=s+1;s=s+1; If s≤0s \leq0 then wake up process waiting on s; Assume that PbP_b and VbV_b the wait and signal operations on binary semaphores are provided. Two binary semaphores xbx_b …
Official PYQ2008Operating SystemI/O SchedulingMCQ · 1 mark
For a magnetic disk with concentric circular tracks, the seek latency is not linearly proportional to the seek distance due to
Official PYQ2008Operating SystemFile SystemsMCQ · 1 mark
The data blocks of a very large file in the Unix file system are allocated using
Official PYQ2007Operating SystemMemory Management and Virtual MemoryMCQ · 1 mark
A process, has been allocated 33 page frames. Assume that none of the pages of the process are available in the memory initially. The process makes the following sequence of page references (reference string): 1,2,1,3,7,4,5,6,3,11, 2, 1, 3, 7, 4, 5, 6, 3, 1 Least Recently Used (LRU) page replacement policy is a practical approximation to optimal page replacement. For …
Official PYQ2007Operating SystemMemory Management and Virtual MemoryMCQ · 1 mark
A process has been allocated 33 page frames. Assume that none of the pages of the process are available in the memory initially. The process makes the following sequence of page references (reference string): 1,2,1,3,7,4,5,6,3,1\mathbf{1, 2, 1, 3, 7, 4, 5, 6, 3, 1} If optimal page replacement policy is used, how many page faults occur for the above reference string?
Official PYQ2007Operating SystemConcurrency and SynchronizationMCQ · 1 mark
Two processes, P1P1 and P2P2, need to access a critical section of code. Consider the following synchronization construct used by the processes: /* P1 */ while (true) { wants1 = true; while (wants2 == true); /* Critical Section */ wants1 = false; } /* Remainder section */ /* P2 */ while (true) { wants2 = true; while (wants1 == true); /* Critical Section …
Official PYQ2007Operating SystemDeadlockMCQ · 1 mark
A single processor system has three resource types X,YX, Y and ZZ, which are shared by three processes. There are 55 units of each resource type. Consider the following scenario, where the column alloc denotes the number of units of each resource type allocated to each process, and the column request denotes the number of units of each resource type …
Official PYQ2007Operating SystemMemory Management and Virtual MemoryMCQ · 1 mark
A virtual memory system uses First In First Out (FIFO) page replacement policy and allocates a fixed number of frames to a process. Consider the following statements: P: Increasing the number of page frames allocated to a process sometimes increases the page fault rate. Q: Some programs do not exhibit locality of reference. Which one of the following is …
Official PYQ2007Operating SystemCPU SchedulingMCQ · 1 mark
An operating system used Shortest Remaining System Time first (SRT) process scheduling algorithm. Consider the arrival times and execution times for the following processes: …
Official PYQ2007Operating SystemProcesses and ThreadsMCQ · 1 mark
Consider the following statements about user level threads and kernel level threads. Which one of the following statements is FALSE?
Official PYQ2007Operating SystemCPU SchedulingMCQ · 1 mark
Group 1 contains some CPU scheduling algorithms and Group 2 contains some applications. Match entries in Group 1 to entries in Group 2. …
Official PYQ2007Operating SystemI/O SchedulingMCQ · 1 mark
Consider a disk pack with 1616 surfaces, 128128 tracks per surface and 256256 sectors per track. 512512 bytes of data are stored in a bit serial manner in a sector. The capacity of the disk pack and the number of bits required to specify a particular sector in the disk are respectively: