Mulitple processes aware of each other

Posted by Abhan on Programmers See other posts from Programmers or by Abhan
Published on 2012-03-24T15:00:15Z Indexed on 2012/03/24 17:37 UTC
Read the original article Hit count: 215

Filed under:
|

Hope you can help me with this, I've searched a lot and I got really confused of what to do here.

I'm building a program in C and I need to run it multiple time as I need.

So it's going to be like below,

process 1 handle all rows on DB table test where process_flag=1
process 2 handle all rows on DB table test where process_flag=2
process 3 handle all rows on DB table test where process_flag=3
and so on

How can I make the processes aware of each other, so if process 3 goes down then processes 2 & 3 start working on process_flag=3?

© Programmers or respective owner

Related posts about c

    Related posts about process