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 PYQ2013Operating SystemMemory Management and Virtual MemoryMCQ · 1 mark
A computer uses 46-bit46\text{-bit} virtual address, 32-bit32\text{-bit} physical address, and a three–level paged page table organization. The page table base register stores the base address of the first-level table (T1)\text{(T1)}, which occupies exactly one page. Each entry of T1\text{T1} stores the base address of a page of the second-level table …
Official PYQ2012Operating SystemMemory Management and Virtual MemoryMCQ · 1 mark
Consider the virtual page reference string 1, 2, 3, 2, 4, 1, 3, 2, 4, 1\text{1, 2, 3, 2, 4, 1, 3, 2, 4, 1} on a demand paged virtual memory system running on a computer system that has main memory size of 33 page frames which are initially empty. Let LRU\text{LRU}, FIFO\text{FIFO} and OPTIMAL\text{OPTIMAL} denote the number of page faults under the corresponding page replacement …
Official PYQ2012Operating SystemI/O SchedulingMCQ · 1 mark
A file system with 300300 GByte disk uses a file descriptor with 88 direct block addresses, 11 indirect block address and 11 doubly indirect block address. The size of each disk block is 128128 Bytes and the size of each disk block address is 88 Bytes. The maximum possible file size in this file system is
Official PYQ2012Operating SystemConcurrency and SynchronizationMCQ · 1 mark
Fetch_And_Add(X,i) is an atomic Read-Modify-Write instruction that reads the value of memory location XX, increments it by the value ii, and returns the old value of XX. It is used in the pseudocode shown below to implement a busy-wait lock. LL is an unsigned integer shared variable initialized to 00. The value of 00 corresponds to lock …
Official PYQ2012Operating SystemCPU SchedulingMCQ · 1 mark
Consider the 33 processes, P1,P2P1, P2 and P3P3 shown in the table. ProcessArrival TimeTime Units RequiredP105P217P334\small \begin{array}{|c|c|c|} \hline \textbf{Process} & \textbf{Arrival Time} & \textbf{Time Units Required} \\ \hline \text{P1} & 0 & 5\\ \hline \text{P2} & 1 & 7 \\ \hline \text{P3} & 3 & 4 \\ \hline \end{array}The completion order of the 33 …
Official PYQ2012Operating SystemSystem CallsMCQ · 1 mark
A process executes the code fork(); fork(); fork(); The total number of child processes created is
Official PYQ2011Operating SystemI/O SchedulingMCQ · 1 mark
An application loads 100100 libraries at startup. Loading each library requires exactly one disk access. The seek time of the disk to a random location is given as 1010 ms. Rotational speed of disk is 60006000 rpm. If all 100100 libraries are loaded from random locations on the disk, how long does it take to load all libraries? (The time to transfer data …
Official PYQ2011Operating SystemMemory Management and Virtual MemoryMCQ · 1 mark
Let the page fault service time be 1010 milliseconds(ms) in a computer with average memory access time being 2020 nanoseconds (ns). If one page fault is generated every 10610^6 memory accesses, what is the effective access time for memory?
Official PYQ2011Operating SystemProcesses and ThreadsMCQ · 1 mark
A thread is usually defined as a "light weight process" because an Operating System (OS) maintains smaller data structure for a thread than for a process. In relation to this, which of the following statement is TRUE?
Official PYQ2011Operating SystemSystem CallsMCQ · 1 mark
A computer handles several interrupt sources of which of the following are relevant for this question. Interrupt from CPU temperature sensor (raises interrupt if CPU temperature is too high) Interrupt from Mouse (raises Interrupt if the mouse is moved or a button is pressed) Interrupt from Keyboard (raises Interrupt if a key is pressed or released) Interrupt …
Official PYQ2011Operating SystemProcesses and ThreadsMCQ · 1 mark
Let the time taken to switch from user mode to kernel mode of execution be T1T1 while time taken to switch between two user processes be T2T2. Which of the following is correct?
Official PYQ2010Operating SystemDeadlockMCQ · 1 mark
A system has nn resources R0,…,Rn−1R_0, \dots,R_{n-1}, and kk processes P0,…,Pk−1P_0, \dots, P_{k-1}. The implementation of the resource request logic of each process PiP_i is as follows: if(i%2==0){\text{if} (i\%2==0) \{ if(i<n) request Ri;\quad\text{if} (i<n) \text{ request } R_i; if(i+2<n) request Ri+2;}\quad\text{if} (i+2 < n) \text{ request } R_{i+2}; \} else{\text{else} \{ …
Official PYQ2010Operating SystemConcurrency and SynchronizationMCQ · 1 mark
The following program consists of 33 concurrent processes and 33 binary semaphores. The semaphores are initialized as S0=1,S1=0S0=1, S1=0 and S2=0.S2=0. …
Official PYQ2010Operating SystemCPU SchedulingMCQ · 1 mark
Which of the following statements are true? Shortest remaining time first scheduling may cause starvation Preemptive scheduling may cause starvation Round robin is better than FCFS in terms of response time
Official PYQ2010Operating SystemMemory Management and Virtual MemoryMCQ · 1 mark
A system uses FIFO policy for system replacement. It has 44 page frames with no pages loaded to begin with. The system first accesses 100100 distinct pages in some order and then accesses the same 100100 pages but now in the reverse order. How many page faults will occur?
Official PYQ2010Operating SystemConcurrency and SynchronizationMCQ · 1 mark
Consider the methods used by processes P1P1 and P2P2 for accessing their critical sections whenever needed, as given below. The initial values of shared boolean variables S1S1 and S2S2 are randomly assigned. …
Official PYQ2009Operating SystemI/O SchedulingMCQ · 1 mark
A hard disk has 6363 sectors per track, 1010 platters each with 22 recording surfaces and 10001000 cylinders. The address of a sector is given as a triple ⟨c,h,s⟩\langle c, h, s \rangle, where cc is the cylinder number, hh is the surface number and ss is the sector number. Thus, the 0th^{th} sector is addresses as ⟨0,0,0⟩\langle 0, 0, 0 \rangle, …
Official PYQ2009Operating SystemI/O SchedulingMCQ · 1 mark
A hard disk has 6363 sectors per track, 1010 platters each with 22 recording surfaces and 10001000 cylinders. The address of a sector is given as a triple ⟨c,h,s⟩\langle c, h, s \rangle, where cc is the cylinder number, hh is the surface number and ss is the sector number. Thus, the 0th^{th} sector is addresses as ⟨0,0,0⟩\langle 0, 0, 0 \rangle, …
Official PYQ2009Operating SystemMemory Management and Virtual MemoryMCQ · 1 mark
A multilevel page table is preferred in comparison to a single level page table for translating virtual address to physical address because
Official PYQ2009Operating SystemConcurrency and SynchronizationMCQ · 1 mark
The enter_CS() and leave_CS() functions to implement critical section of a process are realized using test-and-set instruction as follows: void enter_CS(X) { while(test-and-set(X)); } void leave_CS(X) { X = 0; } In the above solution, XX is a memory location associated with the CSCS and is initialized to 00. Now consider the following statements: The …