ah, there is a gotcha. If I detach every thread, then the script exits before all threads have actually exited. What I want is to get back the memory of the threads when they exit, but I want every thread to complete its sleep and then exit. That is really important for this application.
In reply to Re^2: using many threads and conserving stack size
by danmcb
in thread using many threads and conserving stack size
by danmcb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |