GATEverse Practice, past papers & mock tests
GATE 2019
Operating SystemsProcess Management-ImediumNAT1 mark
The following C program is executed on a Unix/Linux system:
c
#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 _______
Save your progress

Related Operating Systems PYQs