saipkjai
February 20th, 2006, 05:12 AM
can pipe sychronize thread or process? because I'm trying to create 5 thread or process that can take an integer value and display it. each time a thread display the value, it has to be decrement it by 1 until the value has reach 0. The problem that I'm having is how can that integer value be transfer to those 5 process or thread for those 5 thread needs to be running concurrently.Do I just fork() 5 thread first??..I'm really confuse on this...
I know this may sound like an homework question, in fact, it really is a homework question. But I have been doing research on the net and notes for 2 days and still have no idea how do u write an sychronize program using pipe...
sorry for my bad grammer..
I know this may sound like an homework question, in fact, it really is a homework question. But I have been doing research on the net and notes for 2 days and still have no idea how do u write an sychronize program using pipe...
sorry for my bad grammer..