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 PYQ2004Operating SystemProcesses and ThreadsMCQ · 1 mark
Consider the following statements with respect to user-level threads and kernel-supported threads context switch is faster with kernel-supported threads for user-level threads, a system call can block the entire process Kernel supported threads can be scheduled independently User level threads are transparent to the kernel Which of the above statements are …
Official PYQ2003Operating SystemMemory Management and Virtual MemoryMCQ · 1 mark
A processor uses 2-level\text{2-level} page tables for virtual to physical address translation. Page tables for both levels are stored in the main memory. Virtual and physical addresses are both 3232 bits wide. The memory is byte addressable. For virtual to physical address translation, the 1010 most significant bits of the virtual address are used as index …
Official PYQ2003Operating SystemConcurrency and SynchronizationMCQ · 1 mark
Suppose we want to synchronize two concurrent processes PP and QQ using binary semaphores SS and TT. The code for the processes PP and QQ is shown below. …
Official PYQ2003Operating SystemConcurrency and SynchronizationMCQ · 1 mark
Suppose we want to synchronize two concurrent processes PP and QQ using binary semaphores SS and TT. The code for the processes PP and QQ is shown below. Process P: Process Q: while(1){ W: print '0'; print '0'; X: } while(1){ Y: print '1'; print '1'; Z: } Synchronization statements can be inserted only at points W,X,Y,W, X, Y, and ZZ Which …
Official PYQ2003Operating SystemCPU SchedulingMCQ · 1 mark
A uni-processor computer system only has two processes, both of which alternate 1010 ms\text{ms} CPU bursts with 9090 ms\text{ms} I/O bursts. Both the processes were created at nearly the same time. The I/O of both processes can proceed in parallel. Which of the following scheduling strategies will result in the least CPU utilization (over a long …
Official PYQ2003Operating SystemMemory Management and Virtual MemoryMCQ · 1 mark
In a system with 32 bit\text{32 bit} virtual addresses and 1 KB\text{1 KB} page size, use of one-level page tables for virtual to physical address translation is not practical because of
Official PYQ2003Operating SystemI/O SchedulingMCQ · 1 mark
Using a larger block size in a fixed block size file system leads to
Official PYQ2003Operating SystemMemory Management and Virtual MemoryMCQ · 1 mark
A processor uses 2−level2-level page tables for virtual to physical address translation. Page tables for both levels are stored in the main memory. Virtual and physical addresses are both 3232 bits wide. The memory is byte addressable. For virtual to physical address translation, the 1010 most significant bits of the virtual address are used as index into …
Official PYQ2002Operating SystemFile SystemsMCQ · 1 mark
In the index allocation scheme of blocks to a file, the maximum possible size of the file depends on
Official PYQ2002Operating SystemProcesses and ThreadsMCQ · 1 mark
Which combination of the following features will suffice to characterize an OS as a multi-programmed OS? More than one program may be loaded into main memory at the same time for execution If a program waits for certain events such as I/O, another program is immediately scheduled for execution If the execution of a program terminates, another program is …
Official PYQ2002Operating SystemMemory Management and Virtual MemoryMCQ · 1 mark
The optimal page replacement algorithm will select the page that
Official PYQ2002Operating SystemCPU SchedulingMCQ · 1 mark
Which of the following scheduling algorithms is non-preemptive?
Official PYQ2001Operating SystemI/O SchedulingMCQ · 1 mark
Consider a disk with the 100100 tracks numbered from 00 to 9999 rotating at 30003000 rpm. The number of sectors per track is 100100 and the time to move the head between two successive tracks is 0.20.2 millisecond.
Official PYQ2001Operating SystemI/O SchedulingNAT · 1 mark
Consider a disk with the following specifications: 20 surfaces, 1000 tracks/surface, 16 sectors/track, data density 1 KB/sector, rotation speed 3000 rpm. The operating system initiates the transfer between the disk and the memory sector-wise. Once the head has been placed on the right track, the disk reads a sector in a single scan. It reads bits from the …
Official PYQ2001Operating SystemConcurrency and SynchronizationMCQ · 1 mark
Consider Peterson's algorithm for mutual exclusion between two concurrent processes i and j. The program executed by process is shown below. repeat flag[i] = true; turn = j; while (P) do no-op; Enter critical section, perform actions, then exit critical section Flag[i] = false; Perform other non-critical section actions. Until false; For the program to …
Official PYQ2001Operating SystemMemory Management and Virtual MemoryMCQ · 1 mark
Consider a machine with 6464 MB physical memory and a 3232-bit virtual address space. If the page size s 44 KB, what is the approximate size of the page table?
Official PYQ2001Operating SystemProcesses and ThreadsMCQ · 1 mark
Which of the following does not interrupt a running process?
Official PYQ2001Operating SystemI/O SchedulingMCQ · 1 mark
Which of the following requires a device driver?
Official PYQ2001Operating SystemMemory Management and Virtual MemoryMCQ · 1 mark
Consider a virtual memory system with FIFO page replacement policy. For an arbitrary page access pattern, increasing the number of page frames in main memory will
Official PYQ2001Operating SystemMemory Management and Virtual MemoryMCQ · 1 mark
Where does the swap space reside?