Computer Sciences > Gate 2019 > fork() in Operating System
The following C program is executed on a Unix / Linux system:
#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 process created is __________ int main() {
int i;
for (i = 0; i < 10; i++)
if (i % 2 == 0)
fork();
return 0;
}
Correct : a
Similar Questions
A palindrome is a word that reads the same forwards and backwards. In a game
of words, a player has the following two plates painted with letters.
From...
Which number does not belong in the series below?
2, 5, 10, 17, 26, 37, 50, 64
Choose the word that is opposite in meaning to the word “coherent”.
Total Unique Visitors
Loading......