I have a need for a pool of threads to all begin work at the same time. They will be idle before this "start" event, and will ultimately be idle again.
My question is what mechanisms could I use to communicate the "start" event to the threads? A very poor solution would be a shared global that indicating 'Go', that the threads would poll, but I would prefer something better. Perhaps a signal, or a blocking read...
Can anyone suggest a mechanism?
In reply to Thread Synchronization Mechanism by pbeckingham
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |