c - Waiting children processes -


whenever read children processes in c spawned fork(), parent waits children finish. however, facing problem: want spawn 2 children, make them wait until parent gives them work do.

f.example: in client:

fork() 2 children

in parent, connect server server returns work parents hands work on children 

how can achieve this? not asking large chunk of code, guidance , perhaps code explain.

what want inter-process communication (ipc) between parent , child process. extremely common.

if want communicate child process need use pipe. unix/c utilizes pipes via pipe(2).


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -