Creating multiple process and simulation in C via fork()
- by Yakup OZDEN
i want to create multiple process groups which will call different functions.
i write the code below.
firstly i want to get following output
./fork 4 5
I am a child: 1 PID: 22330
I am a child2: 1 PID: 22334
I am a child: 2 PID: 22331
I am a child2: 5 PID: 22338
I am a child: 4 PID: 22333
I am a child: 3 PID: 22332
I am a child2: 2 PID:…