Межпроцессные коммуникации – использование общей памяти, страница 4

Child #2 (PID=5147) RECV "0" from parent (with PPID=5144). sum=5. Current time: Tue Jun  1 18:09:05 2004

Child #1 (PID=5146) SEND "m" to parent (with PPID=5144). Current time: Tue Jun  1 18:09:05 2004

Child #2 (PID=5147) SEND "m" to parent (with PPID=5144). Current time: Tue Jun  1 18:09:05 2004

Parent (PID=5144) RECV "m" from child #1. Current time: Tue Jun  1 18:09:05 2004

Parent (PID=5144) SEND "1" to child #1. Current time: Tue Jun  1 18:09:05 2004

Parent (PID=5144) RECV "m" from child #2. Current time: Tue Jun  1 18:09:05 2004

Parent (PID=5144) SEND "2" to child #2. Current time: Tue Jun  1 18:09:05 2004

Child #1 (PID=5146) RECV "1" from parent (with PPID=5144). sum=5. Current time: Tue Jun  1 18:09:05 2004

Child #2 (PID=5147) RECV "2" from parent (with PPID=5144). sum=7. Current time: Tue Jun  1 18:09:05 2004

Child #0 (PID=5145) SEND "m" to parent (with PPID=5144). Current time: Tue Jun  1 18:09:05 2004

Parent (PID=5144) RECV "m" from child #0. Current time: Tue Jun  1 18:09:05 2004

Parent (PID=5144) SEND "1" to child #0. Current time: Tue Jun  1 18:09:05 2004

Child #0 (PID=5145) RECV "1" from parent (with PPID=5144). sum=8. Current time: Tue Jun  1 18:09:06 2004

Child #1 (PID=5146) SEND "m" to parent (with PPID=5144). Current time: Tue Jun  1 18:09:06 2004

Parent (PID=5144) RECV "m" from child #1. Current time: Tue Jun  1 18:09:06 2004

Parent (PID=5144) SEND "1" to child #1. Current time: Tue Jun  1 18:09:06 2004

Child #1 (PID=5146) RECV "1" from parent (with PPID=5144). sum=6. Current time: Tue Jun  1 18:09:06 2004

Child #3 (PID=5148) SEND "m" to parent (with PPID=5144). Current time: Tue Jun  1 18:09:06 2004

Child #0 (PID=5145) SEND "m" to parent (with PPID=5144). Current time: Tue Jun  1 18:09:06 2004

Parent (PID=5144) RECV "m" from child #3. Current time: Tue Jun  1 18:09:06 2004

Parent (PID=5144) SEND "3" to child #3. Current time: Tue Jun  1 18:09:06 2004

Parent (PID=5144) RECV "m" from child #0. Current time: Tue Jun  1 18:09:06 2004

Parent (PID=5144) SEND "2" to child #0. Current time: Tue Jun  1 18:09:06 2004

Child #3 (PID=5148) RECV "3" from parent (with PPID=5144). sum=8. Current time: Tue Jun  1 18:09:06 2004

Child #0 (PID=5145) RECV "2" from parent (with PPID=5144). sum=10. Current time: Tue Jun  1 18:09:06 2004

Child #4 (PID=5149) SEND "m" to parent (with PPID=5144). Current time: Tue Jun  1 18:09:07 2004

Parent (PID=5144) RECV "m" from child #4. Current time: Tue Jun  1 18:09:07 2004

Parent (PID=5144) SEND "4" to child #4. Current time: Tue Jun  1 18:09:07 2004

Child #2 (PID=5147) SEND "m" to parent (with PPID=5144). Current time: Tue Jun  1 18:09:07 2004

Child #4 (PID=5149) RECV "4" from parent (with PPID=5144). sum=12. Current time: Tue Jun  1 18:09:07 2004

Parent (PID=5144) RECV "m" from child #2. Current time: Tue Jun  1 18:09:07 2004

Parent (PID=5144) SEND "2" to child #2. Current time: Tue Jun  1 18:09:07 2004

Child #2 (PID=5147) RECV "2" from parent (with PPID=5144). sum=9. Current time: Tue Jun  1 18:09:07 2004

Child #1 (PID=5146) SEND "m" to parent (with PPID=5144). Current time: Tue Jun  1 18:09:07 2004

Parent (PID=5144) RECV "m" from child #1. Current time: Tue Jun  1 18:09:07 2004

Parent (PID=5144) SEND "0" to child #1. Current time: Tue Jun  1 18:09:07 2004

Child #1 (PID=5146) RECV "0" from parent (with PPID=5144). sum=6. Current time: Tue Jun  1 18:09:07 2004