How many unique processes and threads are created in the following program segment? pid_t pid; pid =
Fantastic news! We've Found the answer you've been seeking!
Question:
pid_t pid;
pid = fork();
if (pid == 0)
{
/* child process */
fork();
thread.create(…);
}
else
{
/* parent process */
fork();
thread.create(…);
}
fork();
Related Book For
Computer Systems A Programmers Perspective
ISBN: 9781292101767
3rd Global Edition
Authors: Randal E. Bryant, David R. O'Hallaron
Posted Date: