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
A computer uses virtual address, physical address, and a three–level paged page table organization. The page table base register stores the base address of the first-level table , which occupies exactly one page. Each entry of stores the base address of a page of the second-level table …
Consider the virtual page reference string on a demand paged virtual memory system running on a computer system that has main memory size of page frames which are initially empty. Let , and denote the number of page faults under the corresponding page replacement …
A file system with GByte disk uses a file descriptor with direct block addresses, indirect block address and doubly indirect block address. The size of each disk block is Bytes and the size of each disk block address is Bytes. The maximum possible file size in this file system is
Fetch_And_Add(X,i) is an atomic Read-Modify-Write instruction that reads the value of memory location , increments it by the value , and returns the old value of . It is used in the pseudocode shown below to implement a busy-wait lock. is an unsigned integer shared variable initialized to . The value of corresponds to lock …
Consider the processes, and shown in the table. The completion order of the …
A process executes the code fork(); fork(); fork(); The total number of child processes created is
An application loads libraries at startup. Loading each library requires exactly one disk access. The seek time of the disk to a random location is given as ms. Rotational speed of disk is rpm. If all libraries are loaded from random locations on the disk, how long does it take to load all libraries? (The time to transfer data …
Let the page fault service time be milliseconds(ms) in a computer with average memory access time being nanoseconds (ns). If one page fault is generated every memory accesses, what is the effective access time for memory?
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?
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 …
Let the time taken to switch from user mode to kernel mode of execution be while time taken to switch between two user processes be . Which of the following is correct?
A system has resources , and processes . The implementation of the resource request logic of each process is as follows: …
The following program consists of concurrent processes and binary semaphores. The semaphores are initialized as and …
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
A system uses FIFO policy for system replacement. It has page frames with no pages loaded to begin with. The system first accesses distinct pages in some order and then accesses the same pages but now in the reverse order. How many page faults will occur?
Consider the methods used by processes and for accessing their critical sections whenever needed, as given below. The initial values of shared boolean variables and are randomly assigned. …
A hard disk has sectors per track, platters each with recording surfaces and cylinders. The address of a sector is given as a triple , where is the cylinder number, is the surface number and is the sector number. Thus, the 0 sector is addresses as , …
A hard disk has sectors per track, platters each with recording surfaces and cylinders. The address of a sector is given as a triple , where is the cylinder number, is the surface number and is the sector number. Thus, the 0 sector is addresses as , …
A multilevel page table is preferred in comparison to a single level page table for translating virtual address to physical address because
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, is a memory location associated with the and is initialized to . Now consider the following statements: The …
