i want to make scheduling in my program. For example
All processes do something and in communication with each other by pipes. they send and receive data in loops. The problem is, i want to run firstly child1 and then child2 and finally parent in each loop iteration until some condition is satisfied.
pid2 = fork;
pid2 = fork();
how can i do that?