in reply to Re^3: Monitor list of threads running
in thread Monitor list of threads running

I don't need the workerThreads to wait at all, I just want them in while loop and keep reading from DataQueue, and MasterThread to Just Queue to DataQueue.

My only concern was to watch and make sure all workerThreads are alive.

So, I don't know if I can use join() in my case

Replies are listed 'Best First'.
Re^5: Monitor list of threads running
by Corion (Patriarch) on Apr 08, 2010 at 19:48 UTC

    Maybe now is a good time to review the threads documentation. The skeleton for a simple Thread::Queue worker approach is outlined by BrowserUk in 735931. Maybe you want to work from that, or do some more research into other posts on the subject on this site.