At 18:34 -0500 12/11/02, Mike Culbertson wrote:
This is probably a newbie question, but I can find no answers elsewhere.These processes / threads are:
I am using Thread::Pool in an app I wrote, and it does not need much in the way of workers
so I only start 2, which then sit there and stream results back to the main thread.
My question is about the quantity of threads I see in the process table. Even though I only
start 2, I have 5 script processes running while the app is going, the first is the main, and
the last 2 appear to be the workers (based on traces), but I cannot figure out what the
others are.
- the "hidden" thread that is used by threads::shared that doesn't show up in thread id numbers
- the Thread::Tie thread (which is used by Thread::Conveyor, which is used by Thread::Pool)
,,, There are no other thread or fork calls anywhere in the script, and it does
function properly so I'm assuming this is normal behavior but I would surely like to know
why they are there. (I have tried tracing the "extras" but the process does not seem to
like that and dies shortly after I attach to it). Thanks.
I'm not surprised... ;-)
Liz
