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:
- parent waiting child signal.
- every child sends signal parent, , blocks until receiving signal parent
- 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
Post a Comment