in reply to Re^2: Multithreaded memory usage
in thread Multithreaded memory usage
I am assuming once a detached thread reaches the end of its code block it should automatically quit and the OS should recover that memory?
I'm really not an expert here, but I don't think that's the case, at least not always. The OS probably doesn't have any idea about which parts of the memory is associated to which user-level thread, and thus can't clean up. It does know about processes though, which is why I recommended them over threads.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Multithreaded memory usage
by bingohighway (Acolyte) on Apr 21, 2009 at 08:31 UTC | |
by moritz (Cardinal) on Apr 21, 2009 at 09:09 UTC | |
by bingohighway (Acolyte) on Apr 21, 2009 at 09:38 UTC |