in reply to Re^4: using many threads and conserving stack size
in thread using many threads and conserving stack size
I believe what's going on here is that each thread, once it has finished, has a "return" value in its hot little hands.
If you detach the thread, you've said you don't want the "return" value, so as soon as it's finished, the thread can tidy up after itself and leave the building.
Otherwise, until you join (or detach) the thread, it's sitting there, waiting patiently to give its final report, before it tidies up and leaves. (Kind of sad, really, given how much you care !)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: using many threads and conserving stack size
by danmcb (Monk) on Nov 12, 2008 at 16:43 UTC | |
by gone2015 (Deacon) on Nov 12, 2008 at 17:08 UTC | |
by Zen (Deacon) on Nov 12, 2008 at 23:05 UTC |