Course Solutions Uncategorized (Solved) : 6 417 Consider Following Code Segment Pidt Pid Pid Fork Pid 0 Child Process Fork Threadcre Q35339057 . . . .

(Solved) : 6 417 Consider Following Code Segment Pidt Pid Pid Fork Pid 0 Child Process Fork Threadcre Q35339057 . . . .

 

6. 4.17 Consider the following codesegment:

  pid_t pid;

  

  pid = fork();

  if (pid == 0) { /* child process */

    fork();

    thread_create( . . .);

  }

  fork();

  1. How many unique processes are created?
  2. How many unique threads are created?

Expert Answer


An answer will be send to you shortly. . . . .

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post