So how could I detach the threads?
I showed you exactly how to do it above? Change threads->detach; to $thr->detach;.
detach() is an instance method. That is, you need to call it upon the thread handle you wish to detach. You are currently calling it as a class method, which makes no sense, and if warnings were enabled, would (probably) raise an error.
Does your OS have a tool that will show you how many threads are running when the stall occurs? Also, are your child processes being cleaned up or are you creating lots of zombies?
In reply to Re^3: Completely Random Stall
by BrowserUk
in thread Completely Random Stall
by expresspotato
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |