c - Synchronisation using signals -


what way implement such situation using signals (not real-time)? :

there n childs (processes, created fork()), 1 parent, , sync must that:

  1. parent waiting child signal.
  2. every child sends signal parent, , blocks until receiving signal parent
  3. parent sends signal child, signal noticed

i don't know because there 2 user defined signals sigusr1, sigusr2, have n childs, lot of child should use 1 type of signal, , afraid of it

any ideas?..

you dont need use user defined signals u can send signal child..or parent have catch signal using signal() orsigaction() system function...and signal's isr send signal particular child


Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -