Operating Systems — Solved PYQ & Mock Arena
Topic-wise Operating Systems previous-year GATE & UGC NET questions with step-by-step LaTeX solutions
Which of the following statements about Multi-Core Process Synchronization are CORRECT?
A process owns virtual memory pages in RAM ( Read-Only code pages and Read-Write data pages) and calls fork() on an OS with Copy-on-Write (COW) paging. Before exec(), the parent writes to distinct data pages and the child writes to data pages ( of which is the same page written by the parent). How many total physical page frames are occupied by parent and child combined?
Consider Peterson’s two-process software synchronization solution using shared flag[0..1] and turn. Which of the three Critical Section requirements (Mutual Exclusion, Progress, Bounded Waiting) does it satisfy on a sequentially consistent processor?
A Unix inode has direct block pointers, single-indirect, double-indirect, and triple-indirect pointer. Disk block size is and each block address is . Approximately what is the maximum file size contributed by the double-indirect block alone (in GB)?
Consider a system with initially empty page frames and page reference string 1, 2, 3, 4, 2, 1, 5, 3, 2, 4, 6. How many page faults occur under Optimal (MIN) page replacement?
A system uses a 2-level hierarchical page table with a TLB. TLB access takes , main memory access takes , and the TLB hit ratio is . Assuming zero page faults, what is the Effective Memory Access Time (EMAT) in nanoseconds?
Four processes arrive at times with CPU burst times respectively. Under SRTF (Shortest Remaining Time First) preemptive scheduling, what is the average turnaround time?
A disk head is currently at cylinder and pending requests are at cylinders . Under SSTF (Shortest Seek Time First), which cylinder is serviced first and second?
A system has processes, each requiring at most identical units of resource . What is the minimum number of units of that guarantees the system is always deadlock-free?
A counting semaphore is initialized to . Subsequently, wait(P) operations and signal(V) operations are completed on . What is the current value of ?
Which of the following page replacement algorithms can suffer from Belady’s Anomaly (more page faults when allocated more physical page frames)?
A C program executes fork(); fork(); fork(); sequentially without any conditional branching. Including the initial parent process, how many child processes are newly created?
A paging system uses a single-level page table in main memory ( access time) and a TLB ( lookup time) with a TLB hit ratio of . Assuming sequential TLB-then-memory lookup, what is the Effective Memory Access Time (EMAT) in nanoseconds?
A system has processes, and each process requires a maximum of instances of resource to complete execution. What is the minimum number of instances of that guarantees the system will NEVER enter deadlock?