Communicating between a parent and its children
Newbie question: On Unix, in a program with a parent and some children: - How can the parent alert the children efficiently to do some work.. ? - Or how can the children wait for parent signal to start doing some work? EDIT: This program tries to do a complex computation in parallel, I have already used shared memory as a common workspaces for all children to update results and for data transfer. What I need now is the parent say "start" efficiently to all its children...(called many times) Thanks Your ipc tag says it all. You need to look into inter-process communuication: Shared memory.