Question: How many unique processes and threads are created in the following program segment? pid_t pid; pid = fork(); if (pid == 0) { /* child
How many unique processes and threads are created in the following program segment? pid_t pid; pid = fork(); if (pid == 0) { /* child process */ fork(); thread.create(); } else { /* parent process */ fork(); thread.create(); } fork();
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
