I have this code and trying to understand how many process and threads will be created from this:
pid t pid; pid = fork(); if (pid == 0) { /* child process
shouldn't it be 2 threads and 6 processes?
M | ↘ M A | |↘ M A* B* | | | | ↘ | ↘ |↘ M C A D B E
as I use * to represent thread.