
6 Nov
2006
6 Nov
'06
4:58 p.m.
Goroll, Torsten wrote:
Thanks for the quick answers.
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.
That is what "join with thread T" means, "block until T has ended". It's not clear what you mean by "not consistent", consistent with what? What would you expect join to do if it doesn't block? If you don't want the main thread to block waiting for T to end, then don't call join.