Hi,
How does fork() work in c? I mean how does it execute? Does child process finish first then goes to parent process or do they perform operations at the same time?
my other question is, what if I want to have 3 differnet processes like process 1 is the parent so it has a child process 2, then process 2 uses fork() and gets a child process, process 3. How would I code this kind of thing...maybe use if thens.
Thank you
How does fork() work in c? I mean how does it execute? Does child process finish first then goes to parent process or do they perform operations at the same time?
my other question is, what if I want to have 3 differnet processes like process 1 is the parent so it has a child process 2, then process 2 uses fork() and gets a child process, process 3. How would I code this kind of thing...maybe use if thens.
Thank you