consider the following code segment pid_t pid pid fork if pid 0 child
Question
Consider the following code segment: pid_t pid; pid = fork(); if (pid == 0) { /* child process */ fork(); thread create( . . .); } fork(); a. How many unique
processes are created? Explain. b. How many unique threads are created? Explain.