GATE CS 2019 (Forenoon) — Question 27

Operating Systems (OS)System Calls, Processes, Threads, InterProcess CommunicationNAT1 markMedium

Consider the following C program is executed on a Unix/Linux system:
c
1#include<unistd.h>
2int main( )
3{
4    int i;
5    for (i = 0; i < 10; i++)
6        if (i % 2 == 0) fork( );
7    return 0;
8}
9
The total number of child processes created is ________.
Practise the full 2019-FN paper
Challenge a friend: WhatsApp Telegram
From RENYXERAPractise this subject in the exam simulatorTimed, GATE-style tests with analytics that find your weak topics.
Practise more on System Calls, Processes, Threads, InterProcess CommunicationTimed, in the real exam interface · free to start

A GATE question every morning

One real past-paper question every morning for your branch, answer hidden until you tap. Free on Telegram.

Join
Stuck? Ask in the student group