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
Consider an arbitrary set of CPU-bound processes with unequal CPU burst lengths submitted at the same time to a computer system. Which one of the following process scheduling algorithms would minimize the average waiting time in the ready queue?
Consider the following processes, with the arrival time and the length of the CPU burst given in milliseconds. The scheduling algorithm used is preemptive shortest remaining-time first. …
Consider the following two-process synchronization solution. …
Consider a non-negative counting semaphore . The operation decrements , and increments . During an execution, operations and operations are issued in some order. The largest initial value of for which at least one operation will remain blocked is _______
In which one of the following page replacement algorithms it is possible for the page fault rate to increase even when the number of allocated frames increases?
Consider a disk pack with a seek time of milliseconds and rotational speed of rotations per minute (RPM). It has sectors per track and each sector can store bytes of data. Consider a file stored in the disk. The file contains sectors. Assume that every sector access necessitates a seek, and the average rotational …
Consider a main memory with five-page frames and the following sequence of page references: . Which one of the following is true with respect to page replacement policies First In First Out (FIFO) and Least Recently Used (LRU)?
Consider a uniprocessor system executing three tasks and each of which is composed of an infinite sequence of jobs (or instances) which arrive periodically at intervals of and milliseconds, respectively. The priority of each task is the inverse of its period, and the available tasks are scheduled in order of …
Suppose the following disk request sequence (track numbers) for a disk with tracks is given: Assume that the initial position of the R/W head is on track . The additional distance that will be traversed by the R/W head when the Shortest Seek Time First (SSTF) algorithm is used compared to the SCAN …
Consider a system with byte-addressable memory, logical addresses, page size and page table entries of each. The size of the page table in the system in is___________.
The following two functions and that share a variable with an initial value of execute concurrently. The number of …
Consider a typical disk that rotates at rotations per minute (RPM) and has a transfer rate of bytes/sec. If the average seek time of the disk is twice the average rotational delay and the controller's transfer time is times the disk transfer time, the average time (in milliseconds) to read or write a -byte sector of …
A computer system implements pages and a physical address space. Each page table entry contains a valid bit, a dirty bit, three permission bits, and the translation. If the maximum size of the page table of a process is , the length of the virtual address supported by the system is _______ …
Consider memory partitions of sizes , , , , and , where refers to . These partitions need to be allotted to four processes of sizes , , …
A computer system implements a virtual address, page size of , and a translation look-aside buffer organized into sets each having ways. Assume that the tag does not store any process id. The minimum length of the tag in bits is ______.
A system has identical resources and processes competing for them. Each process can request at most resources. Which one of the following values of could lead to a deadlock?
Consider the following policies for preventing deadlock in a system with mutually exclusive resources. Process should acquire all their resources at the beginning of execution. If any resource is not available, all resources acquired so far are released. The resources are numbered uniquely, and processes are allowed to request for resources only in …
For the processes listed in the following table, which of the following scheduling schemes will give the lowest average turnaround time? …
Two processes and need to access a critical section. Consider the following synchronization construct used by both the processes …
The maximum number of processes that can be in state for a computer system with CPUs is :
