I m making an application that spawns X no of children ( X predefind).Each child so spawned further constructs Y no of threads( Y predefined).Now i m not able to find a way in which a thread(lets call it XY1) does its subtask, signals to main thread that it has done its subtask and suspends itself. The main thread then makes a new thread (XY3) to act on the results of thread XY1 and then resumes XY1 to proceed with next batch without waiting for XY3 to complete.
I tried using semaphore for suspend and resume operation of threads but where do i put the code for constructing a new thread?
ThanksIn reply to Problem in Inter Process Communication by libvenus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |