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 the following four processes with arrival times (in milliseconds) and their length of CPU bursts (in milliseconds) as shown below: …
The index node (inode) of a Unix -like file system has direct, one single-indirect and one double-indirect pointers. The disk block size is kB, and the disk block address is -bits long. The maximum possible file size is (rounded off to decimal place) ____ GB
Consider a storage disk with platters (numbered as and ), cylinders (numbered as ), and sectors per track (numbered as ). The following disk requests of the form [sector number, cylinder number, platter number] are received by the disk controller at the same time: …
In a system, there are three types of resources: and . Four processes , , and execute concurrently. At the outset, the processes have declared their maximum resource requirements using a matrix named Max as given below. For example, Max[] is the maximum number of instances of that would …
Consider the following solution to the producer-consumer synchronization problem. The shared buffer size is . Three semaphores , and are defined with respective initial values of and . Semaphore denotes the number of available slots in the buffer, for the consumer to read from. Semaphore …
Consider a system with processes that share instances of the same resource type. Each process can request a maximum of instances. Resources can be requested and releases only one at a time. The largest value of that will always avoid deadlock is ___
Consider a process executing on an operating system that uses demand paging. The average time for a memory access in the system is units if the corresponding memory page is available in memory, and units if the memory access causes a page fault. It has been experimentally measured that the average time taken for a memory access in the process is …
The following are some events that occur after a device controller issues an interrupt while process is under execution. P. The processor pushes the process status of onto the control stack Q. The processor finishes the execution of the current instruction R. The processor executes the interrupt service routine S. The processor pops the process …
Recall that Belady's anomaly is that the page-fault rate may increase as the number of allocated frames increases. Now, consider the following statements: : Random page replacement algorithm (where a page chosen at random is replaced) suffers from Belady's anomaly. : LRU page replacement algorithm suffers from Belady's anomaly. Which of the …
A multithreaded program executes with number of threads and uses number of locks for ensuring mutual exclusion while operating on shared memory locations. All locks in the program are non-reentrant, i.e., if a thread holds a lock , then it cannot re-acquire lock without releasing it. If a thread is unable to acquire a lock, it …
Consider the following CPU processes with arrival times (in milliseconds) and length of CPU bursts (in milliseconds) as given below: …
Threads of a process share
Consider the set of process with arrival time (in milliseonds), CPU burst time (in millisecods) and priority ( is the highest priority) shown below. None of the process have I/O burst time …
In a file allocation system, which of the following allocation scheme(s) can be used if no external fragmentation is allowed? Contiguous Linked Indexed
A system shares tape drives. The current allocation and maximum requirement of tape drives for that processes are shown below: …
Which of the following is/are shared by all the threads in a process? Program counter Stack Address space Registers
Consider the following proposed solution for the critical section problem. There are processes : . In the code, function returns an integer not smaller than any of its arguments .For all is initialized to zero. Code for ; do { c[i]=1; t[i]= pmax (t[0],....,t[n-1])+1; c[i]=0; for every j != i in …
Cylinder a disk queue with requests for to blocks on cylinders The C-LOOK scheduling algorithm is used. The head is initially at cylinder number , moving towards larger cylinder numbers on its servicing pass. The cylinders are numbered from to . The total head movement (in number of cylinders) …
Consider a computer system with ten physical page frames. The system is provided with an access sequence , where each is a distinct virtual page number. The difference in the number of page faults between the last-in-first-out page replacement policy and the optimal page replacement policy …
Consider a computer system with -bit virtual addressing and page size of sixteen kilobytes. If the computer system has a one-level page table per process and each page table entry requires bits, then the size of the per-process page table is __________ megabytes.
