
6 Nov
2006
6 Nov
'06
4:56 p.m.
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users- bounces@lists.boost.org] On Behalf Of Goroll, Torsten Sent: Monday, November 06, 2006 11:46 AM To: boost-users@lists.boost.org 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.