Re: Sometimes very slow when creating thread
[email protected] (Elizabeth Mattijsen)
| Newsgroups | perl.ithreads |
|---|---|
| Message-ID | <p05111b00bc5f73ca2934@[192.168.56.3]> |
At 19:58 +0000 2/22/04, [email protected] (PerlDiscuss - Perl Newsgroups and wrote: >I have a program with 6 threads. >At a normal start of the program all is up and running in 4 seconds, BUT >often it takes 3 minutes!?! >What happens is that each "threads->create(" takes about 30 seconds to >create. Print statements before and after and as the first line in the >thread shows that all the time is spent in the "create method". During >that time perl runs with 100% CPU! >Sometime it takes 4 seconds or sometimes 3 minutes to start! >The platform is Win32 (W2000 and XP). >Perl is 5.8.2 and 5.8.3. >Any idea on what is happening and how I could avoid it? >(Its a very large program with a lot of modules used) Check out my article "Things you need to know before programming Perl ithreads" http://www.perlmonks.org/index.pl?node_id=288022 Liz