Operating Systems · Processes, Threads and IPC
Official IIT answer key · IIT Madras · Audited Aug 2026
GATE CSE 2019 Q17 · NAT · 1 mark
#include <unistd.h>
int main()
{
int i;
for (i=0; i<10; i++)
if (i%2 == 0) fork();
return 0;
}
The total number of child processes created is _______.Key concept
No account needed
Sit 5 related Processes, Threads and IPCPYQs as a guest. We'll score the set and show which traps cost marks — sign in only if you want to save the run.
Topic notes
GATE evaluates the 'Processes' topic primarily through the standard 5-state process lifecycle (New, Ready, Running, Blocked/Waiting, Terminated) and the valid/invalid transitions between these states. Questions consistently test the exact path of a process during execution, preemption, and I/O invocation. Recent trends show a progression from purely theoretical transition checks (MCQ/MSQ) to procedural tracing of state changes in C code execution (NAT).
Full Processes, Threads and IPC guide →The following C program is executed on a Unix/Linux system: #include int main() int i; for (i=0; i The total number of child processes created is …
Topic-wise GATE CS PYQs with verified steps
Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.
