GATE Computer Science and Information Technology (GATE CS) · GATE
Operating Systems and Computer Networks
14 practice questions covering 26% of the official GATE Computer Science and Information Technology (GATE CS) blueprint. Every item includes a worked explanation of the correct answer.
View all 4 domains in GATE Computer Science and Information Technology (GATE CS)
Syllabus Coverage & Domain Overview
This topic combines two core technical sections of the GATE CS paper. The Operating Systems section of the current official syllabus covers system calls, processes, threads, inter-process communication, concurrency and synchronization, deadlock, CPU and I/O scheduling, memory management with virtual memory, and file systems. The Computer Networks section covers the layered view of network communication, from how data moves across a link to how it is routed between networks and delivered reliably between hosts. The syllabus for networks was revised recently, so check the current official outline before you settle on a reading list.
In operating systems, the distinctions that matter most are process versus thread, preemptive versus non-preemptive scheduling, a safe state versus a deadlock, and logical versus physical address spaces. You should be able to trace a schedule by hand and compute waiting and turnaround times. You should be able to test a resource-allocation state for safety. You should be able to reason about mutual exclusion, ordering and counting with semaphores. You should also be able to work out how paging, a translation lookaside buffer and page replacement affect the number of faults and the average access time. File-system questions usually ask about allocation methods, directory structures and disk scheduling.
In networks, you need to keep the layers apart and know what each one is responsible for. The central ideas are addressing and subnetting, forwarding by the longest matching prefix, how routing protocols build their tables, and how link-layer and medium-access methods share a channel. At the transport layer the key topics are flow control and congestion control, and how window sizes grow and shrink after loss. Efficiency of a sliding-window protocol depends on the ratio of propagation delay to transmission time, so that ratio shows up repeatedly.
Questions are mostly numerical or trace-based, and many are framed with a small table, a reference string, a timeline or a short code fragment. Typical traps are small and mechanical. In scheduling, candidates forget that a process arriving mid-burst can trigger a preemption, or they mix up waiting time and response time. In memory questions they apply a formula without checking whether the page table sits in memory or a hit ratio refers to the TLB. In subnetting they forget to subtract the reserved addresses, or they pick the wrong prefix when several routes match. In window problems they confuse units, bits against bytes or milliseconds against seconds, and they stop a cycle early. Synchronization questions often hinge on a single ordering of wait and signal calls that leaves the final value, or a blocked process, different from what you first assumed.
For preparation, work from the syllabus list and make sure you can derive each formula rather than just recall it. Practise tracing algorithms by hand on small inputs until the steps are automatic, then check your answers against a second method where one exists. Keep a short list of your own recurring slips, such as unit conversions, off-by-one counts and reserved addresses, and review it before timed practice. Previous GATE papers are the best guide to the style and depth of what is asked.
In the official GATE Computer Science and Information Technology (GATE CS) examination blueprint, Operating Systems and Computer Networks carries a weightage of 26%. Out of the total examination duration of 3 hr, candidates should budget approximately 47 min for questions from this domain to maintain pace across the paper.
How to Master Operating Systems and Computer Networks for GATE Computer Science and Information Technology (GATE CS)
Our 14 published questions in Operating Systems and Computer Networks are written for PrepIQ Hub and checked as set out in our editorial policy. Each item is written to the hard difficulty level of the GATE exam:
- Targeted Topic Drills: Launch Topic Practice mode to work exclusively through Operating Systems and Computer Networks items and review the step-by-step derivation after each submission.
- Negative Marking Discipline: The GATE Computer Science and Information Technology (GATE CS) deducts ⅓ of the question's marks for each incorrect response. Use the worked explanations in this topic drill to spot common conceptual traps before sitting a timed mock.
- Benchmark Target: Aim for at least 35% accuracy in Operating Systems and Computer Networks drills before moving to full-paper simulations.
Operating Systems and Computer Networks worked examples
Operating Systems and Computer Networks questions from the GATE Computer Science and Information Technology (GATE CS) syllabus, answered in full. Try each one before opening the explanation.
Example 1 · Operating Systems and Computer Networks · medium
Three processes P1, P2, and P3 arrive at times 0 ms, 1 ms, and 2 ms with CPU burst times of 8 ms, 4 ms, and 2 ms respectively. Under preemptive Shortest Remaining Time First (SRTF) scheduling, what is the average turnaround time across the three processes?
Show answer and explanation
Correct answer: C. 7.33 ms (22 / 3 ms) with completion times P3 = 4 ms, P2 = 7 ms, P1 = 14 ms
Why
At t=0, P1 runs (remaining 7 at t=1). At t=1, P2 arrives (burst 4 < 7), preempting P1; P2 runs 1..2 (remaining 3). At t=2, P3 arrives (burst 2 < 3), preempting P2; P3 runs 2..4 and completes at t=4 (TAT_3 = 4 - 2 = 2 ms). Then P2 runs 4..7 and completes at t=7 (TAT_2 = 7 - 1 = 6 ms). Finally P1 runs 7..14 and completes at t=14 (TAT_1 = 14 - 0 = 14 ms). Average TAT = (14 + 6 + 2) / 3 = 22 / 3 = 7.33 ms.
- A. 10.33 ms (31 / 3 ms) computed by running P1 to completion before P2 and P3 — Running P1 non-preemptively to t=8 is FCFS/non-preemptive SJF, not preemptive SRTF.
- B. 4.67 ms (14 / 3 ms) representing average waiting time rather than turnaround time — Waiting times are (6 + 2 + 0)/3 = 2.67 ms; turnaround time is Completion Time minus Arrival Time.
- D. 8.00 ms (24 / 3 ms) computed by summing completion times directly — Turnaround time is CT - AT ((14 - 0) + (7 - 1) + (4 - 2) = 22), whereas 14 + 7 + 4 = 25.
Example 2 · Operating Systems and Computer Networks · medium
A system has 4 processes (P1..P4) and a single resource type. Each process has a maximum claim of 4 units (Max = [4, 4, 4, 4]) and currently holds 2 units each (Allocated = [2, 2, 2, 2], so Need = [2, 2, 2, 2]). What is the minimum number of additional free (Available) units required so the state is guaranteed to be SAFE under the Banker's algorithm?
Show answer and explanation
Correct answer: A. 2 available units so one process satisfies its remaining need of 2
Why
Each process has Need_i = 4 - 2 = 2 units. If Available = 2, any process P_i can satisfy its Need (2 <= 2), run to completion, and release its 2 allocated units, raising Available to 4 and allowing all remaining processes to finish. With Available = 1, no process can satisfy Need_i = 2.
- B. 0 available units because each process already holds 50% of its maximum claim — With 0 available units, no process can acquire its remaining 2 needed units, causing deadlock.
- C. 1 available unit because processes can acquire one unit at a time and release half — In the worst case, a process releases its allocated resources only after acquiring its full maximum claim (Need = 2).
- D. 8 available units equal to the sum of remaining needs across the four processes — Once the first process finishes with 2 units, it returns its allocated units to the pool for the remaining processes.
Example 3 · Operating Systems and Computer Networks · medium
For the page reference string 1, 2, 3, 4, 1, 2, 5, 1, 2, 3, 4, 5 with 3 initially empty page frames, how many page faults occur under the LRU (Least Recently Used) page replacement policy?
Show answer and explanation
Correct answer: C. 10 page faults with hits on references 1 and 2 right after page 5
Why
Trace with 3 frames under LRU: 1(F:[1]), 2(F:[1,2]), 3(F:[1,2,3]), 4(F:evict 1->[4,2,3]), 1(F:evict 2->[4,1,3]), 2(F:evict 3->[4,1,2]), 5(F:evict 4->[5,1,2]), 1(Hit:[5,1,2]), 2(Hit:[5,1,2]), 3(F:evict 5->[3,1,2]), 4(F:evict 1->[3,4,2]), 5(F:evict 2->[3,4,5]). Total = 10 page faults (only the second 1 and second 2 after 5 are hits).
- A. 9 page faults matching the FIFO fault count on 3 page frames — FIFO incurs 9 faults on 3 frames (and 10 on 4 frames), whereas LRU incurs 10 faults on 3 frames.
- B. 7 page faults matching the Belady Optimal (OPT) replacement bound — 7 faults is the theoretical minimum under clairvoyant Optimal replacement, not LRU.
- D. 12 page faults with each reference missing in the 3-frame memory — References 8 and 9 (1 and 2) are already in frames [5, 1, 2] and result in cache hits.
Every worked example on this page passed our independent verification before publication — how that works is set out in our editorial policy. Spotted an error? Tell us through the contact page and we will correct it.
All 3 Operating Systems and Computer Networks questions with answers
- Three processes P1, P2, and P3 arrive at times 0 ms, 1 ms, and 2 ms with CPU burst times of 8 ms, 4 ms, and 2 ms…
- A system has 4 processes (P1..P4) and a single resource type. Each process has a maximum claim of 4 units (Max = [4…
- For the page reference string 1, 2, 3, 4, 1, 2, 5, 1, 2, 3, 4, 5 with 3 initially empty page frames, how many page…
All Syllabus Domains in GATE Computer Science and Information Technology (GATE CS)
Programming, Data Structures, and Algorithms
16 questions · 28%Operating Systems and Computer Networks (Current domain)
14 questions · 26%Databases, Theory of Computation, and Compiler Design
17 questions · 24%Digital Logic, Computer Organization, and Discrete Mathematics
16 questions · 22%
GATE is a mark of the Indian Institute of Science and the Indian Institutes of Technology. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by the GATE Committee.