I have identical setup--XP, AS809-- and your script runs to completion.

There is a slight memory growth, from ~4MB to ~6MB, but given it creating/destroying 2000 threads each loading CGI which is no lightweight, that doesn't seem significant.

... i=999:--- parent 2104: continue parent 2104: continue parent 2104: waiting for join kid=1 2104 before require kid=1 2104 after require parent 2104: thread exited parent 2104: waiting for join kid=2 2104 before require kid=2 2104 after require parent 2104: thread exited i=1000:--- parent 2104: continue kid=1 2104 before require kid=1 2104 after require parent 2104: continue parent 2104: waiting for join parent 2104: thread exited parent 2104: waiting for join kid=2 2104 before require kid=2 2104 after require parent 2104: thread exited P:\test>perl -v This is perl, v5.8.3 built for MSWin32-x86-multi-thread (with 8 registered patches, see perl -V for more detail) Copyright 1987-2003, Larry Wall Binary build 809 provided by ActiveState Corp. http://www.ActiveState. +com ActiveState is a division of Sophos. Built Feb 3 2004 00:28:51

I also added Date::Manip (about the heaviest module I have) to the list of requires. It slows it down considerably, and ups the memory usage to ~12MB - ~14 MB, but otherwise still completes without error.


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail

In reply to Re: Perl threads test intermittently hangs on Windows by BrowserUk
in thread Perl threads test intermittently hangs on Windows by eyepopslikeamosquito

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.