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 PYQ2014Operating SystemMemory Management and Virtual MemoryNAT · 1 mark
Assume that there are 33 page frames which are initially empty. If the page reference string is 1, 2, 3, 4, 2, 1, 5, 3, 2, 4, 6\text{1, 2, 3, 4, 2, 1, 5, 3, 2, 4, 6} the number of page faults using the optimal replacement policy is__________.
Official PYQ2014Operating SystemCPU SchedulingNAT · 1 mark
Consider the following set of processes that need to be scheduled on a single CPU. All the times are given in milliseconds. …
Official PYQ2014Operating SystemDeadlockMCQ · 1 mark
An operating system uses the Banker's algorithm for deadlock avoidance when managing the allocation of three resource types X,Y,X, Y, and ZZ to three processes P0,P1,P0, P1, and P2.P2. The table given below presents the current system state. Here, the Allocation matrix shows the current number of resources of each type allocated to each process and the Max …
Official PYQ2014Operating SystemProcesses and ThreadsMCQ · 1 mark
Which one of the following is FALSE?
Official PYQ2014Operating SystemI/O SchedulingNAT · 1 mark
Suppose a disk has 201201 cylinders, numbered from 00 to 200200. At some time the disk arm is at cylinder 100100, and there is a queue of disk access requests for cylinders 30,85,90,100,105,110,13530, 85, 90, 100, 105, 110, 135 and 145145. If Shortest-Seek Time First (SSTF) is being used for scheduling the disk access, the request for cylinder 9090 is serviced after …
Official PYQ2014Operating SystemMemory Management and Virtual MemoryNAT · 1 mark
Consider the main memory system that consists of 88 memory modules attached to the system bus, which is one word wide. When a write request is made, the bus is occupied for 100100 nanoseconds (ns) by the data, address, and control signals. During the same 100100 ns, and for 500500 ns thereafter, the addressed memory module executes one cycle accepting …
Official PYQ2014Operating SystemMemory Management and Virtual MemoryMCQ · 1 mark
A computer has twenty physical page frames which contain pages numbered 101101 through 120120. Now a program accesses the pages numbered 1, 2, ..., 100\text{1, 2, ..., 100} in that order, and repeats the access sequence THRICE. Which one of the following page replacement policies experiences the same number of page faults as the optimal page replacement policy for …
Official PYQ2014Operating SystemCPU SchedulingNAT · 1 mark
Three processes AA, BB and CC each execute a loop of 100100 iterations. In each iteration of the loop, a process performs a single computation that requires tct_c CPU milliseconds and then initiates a single I/O operation that lasts for tiot_{io} milliseconds. It is assumed that the computer where the processes execute has sufficient number of …
Official PYQ2014Operating SystemConcurrency and SynchronizationMCQ · 1 mark
Consider the procedure below for the Producer-Consumer problem which uses semaphores: semaphore n = 0; semaphore s = 1; void producer() { while(true) { produce(); semWait(s); addToBuffer(); semSignal(s); semSignal(n); } } void consumer() { while(true) { semWait(s); semWait(n); removeFromBuffer(); semSignal(s); consume(); } } Which one of the following is …
Official PYQ2014Operating SystemFile SystemsNAT · 1 mark
A FAT (file allocation table) based file system is being used and the total overhead of each entry in the FAT is 44 bytes in size. Given a 100×106100 \times 10^6 bytes disk on which the file system is stored and data block size is 10310^3 bytes, the maximum size of a file that can be stored on this disk in units of 10610^6 bytes is _________.
Official PYQ2014Operating SystemMemory Management and Virtual MemoryNAT · 1 mark
Consider a paging hardware with a TLBTLB. Assume that the entire page table and all the pages are in the physical memory. It takes 1010 milliseconds to search the TLBTLB and 8080 milliseconds to access the physical memory. If the TLBTLB hit ratio is 0.60.6, the effective memory access time (in milliseconds) is _________.
Official PYQ2014Operating SystemCPU SchedulingNAT · 1 mark
An operating system uses shortest remaining time first scheduling algorithm for pre-emptive scheduling of processes. Consider the following set of processes with their arrival times and CPU burst times (in milliseconds): …
Official PYQ2014Operating SystemDeadlockNAT · 1 mark
A system contains three programs and each requires three tape units for its operation. The minimum number of tape units which the system must have such that deadlocks never arise is _________.
Official PYQ2014Operating SystemMemory Management and Virtual MemoryNAT · 1 mark
A system uses 33 page frames for storing process pages in main memory. It uses the Least Recently Used (LRU) page replacement policy. Assume that all the page frames are initially empty. What is the total number of page faults that will occur while processing the page reference string given below? 4, 7, 6, 1, 7, 6, 1, 2, 7, 2\text{4, 7, 6, 1, 7, 6, 1, 2, 7, 2}
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 PYQ2013Operating SystemConcurrency and SynchronizationMCQ · 1 mark
A certain computation generates two arrays a and b such that a[i]=f(i)a[i] = f(i) for 0≤i<n0 \leq i < n and b[i]=g(a[i])b[i] = g(a[i]) for 0≤i<n0 \leq i < n. Suppose this computation is decomposed into two concurrent processes XX and YY such that XX computes the array aa and YY computes the array bb. The processes employ two binary semaphores RR …
Official PYQ2013Operating SystemConcurrency and SynchronizationMCQ · 1 mark
A shared variable xx, initialized to zero, is operated on by four concurrent processes W,X,Y,ZW, X, Y, Z as follows. Each of the processes WW and XX reads xx from memory, increments by one, stores it to memory, and then terminates. Each of the processes YY and ZZ reads xx from memory, decrements by two, stores it to memory, and then …
Official PYQ2013Operating SystemFile SystemsMCQ · 1 mark
Consider a hard disk with 1616 recording surfaces (0−15)(0-15) having 1638416384 cylinders (0−16383)(0-16383) and each cylinder contains 6464 sectors (0−63)(0-63). Data storage capacity in each sector is 512512 bytes. Data are organized cylinder-wise and the addressing format is ⟨cylinder no.,surface no.,sector no.⟩\langle \text{cylinder no.}, \text{surface no.}, \text{sector no.} \rangle . A …
Official PYQ2013Operating SystemDeadlockMCQ · 1 mark
Three concurrent processes XX, YY, and ZZ execute three different code segments that access and update certain shared variables. Process XX executes the PP operation (i.e., waitwait) on semaphores aa, b,b, and cc; process YY executes the PP operation on semaphores bb, c,c, and dd; process ZZ executes the PP …
Official PYQ2013Operating SystemCPU SchedulingMCQ · 1 mark
A scheduling algorithm assigns priority proportional to the waiting time of a process. Every process starts with zero (the lowest priority). The scheduler re-evaluates the process priorities every TT time units and decides the next process to schedule. Which one of the following is TRUE if the processes have no I/O operations and all arrive at time zero?