in reply to Win32 and threads;
What did you expect to happen?
What were you hoping to prove?
Your sleeps are not doing what you think.
Perl's built-in sleep takes an integer number of seconds as it's argument. So sleep .1; becomes sleep 0;.
That means that each of your threads:
Hopefully, that explains why there are only ever 3 or 4 threads in the process list at any given time.
As for why the program terminates. I could speculate that your running out of resources somewhere and segfaulting, but that doesn't explain the absence of any error message. Which OS are you running?
Update: If your considering doing anything serious with threads, you should upgrade to 5.8.3 at least and preferably 5.8.4. Ithreads were not very stable before this.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Win32 and threads;
by jammin2night (Initiate) on Jul 11, 2004 at 01:10 UTC | |
by jammin2night (Initiate) on Jul 11, 2004 at 01:22 UTC | |
by jammin2night (Initiate) on Jul 11, 2004 at 15:09 UTC | |
by BrowserUk (Patriarch) on Jul 11, 2004 at 20:07 UTC | |
by pbeckingham (Parson) on Jul 11, 2004 at 20:22 UTC | |
|