in reply to join() or detach() which is more memory efficient ?
when I use detach() - I get a DBI error, so when I used join() I dont get the same.
In theory, they should ultimately be much of a muchness once the join has been called. The nice thing about detach is that the cleanup occurs immediately the thread ends rather than waiting until you get around to calling join. Which might save some memory overall if you are starting new threads on the fly as their stack segments can be reused (earlier).
when I use detach() - I get a DBI error, so when I used join() I dont get the same.
That suggests that you, or the modules you are using, have some kind of error, and warrants further investigation.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: join() or detach() which is more memory efficient ?
by goutamram (Initiate) on Mar 25, 2011 at 16:11 UTC | |
by BrowserUk (Patriarch) on Mar 25, 2011 at 16:59 UTC |