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.
In reply to Re: join() or detach() which is more memory efficient ?
by BrowserUk
in thread join() or detach() which is more memory efficient ?
by goutamram
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |