|
Boost Users : |
From: Nat Goodspeed (ngoodspeed_at_[hidden])
Date: 2006-11-06 11:56:32
> -----Original Message-----
> From: boost-users-bounces_at_[hidden] [mailto:boost-users-
> bounces_at_[hidden]] On Behalf Of Goroll, Torsten
> Sent: Monday, November 06, 2006 11:46 AM
> To: boost-users_at_[hidden]
> Subject: Re: [Boost-users] [Threads] Problem with starting a sub
thread
>
> I understood and experienced that the main thread blocks. But how can
it
> join
> other threads, if it is blocked? That doesn't seem consistent to me.
[Nat] Usually one wouldn't create a thread and then immediately join()
it. The net effect of that would seem to be an expensive function call.
Usually if you want a new thread to run in parallel with the thread that
created it, you let both threads run for a while before one thread
attempts to join() the other.
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