|
Boost Users : |
Subject: Re: [Boost-users] Determining thread existence
From: Jeremy Rottman (rottmanj_at_[hidden])
Date: 2009-04-08 14:30:55
The main reason I want to remove the thread is when the daemon iterates,
I do not want it to create new threads if threads are currently running.
I am currently testing with 25 threads, the total thread count is
dynamic. To sum it up, if threads are active and running, I do not want
new threads to be created until no threads are active. The issue I am
having is trying to determine if there are active threads still running
code.
Scott McMurray wrote:
> On Wed, Apr 8, 2009 at 13:44, Jeremy Rottman <rottmanj_at_[hidden]> wrote:
>
>> What I am trying to do is remove threads from the thread group after they
>> have run. So that when my daemon iterates it will start new threads if none
>> exist.
>>
>>
>
> Why would you want to close down the threads and re-open them? Why
> not just leave the threads running and have them pull tasks from a
> queue?
>
> Unless your hardware is quite special, you don't normally want 25
> active threads anyway...
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
>
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net