in reply to Nasty MultiThread problem
The solution is to call threads::join on each thread handle before exiting the main thread. This will ensure that all threads have finished before your main thread terminates.
You have this line in your code
#$_->join for @thre;
Why have you commented it out?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Nasty MultiThread problem
by JFarr (Sexton) on Nov 18, 2005 at 22:14 UTC | |
by liz (Monsignor) on Nov 18, 2005 at 23:23 UTC | |
by BrowserUk (Patriarch) on Nov 18, 2005 at 22:33 UTC |