Because the first fork creates two processes. One of those processes calls test1, the other does not. Then both processes fork again, creating a total of four processes; two of those processed call test2.
In reply to Re: parallel functions
by tobyink
in thread parallel functions
by micmac
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |