Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Do threads do global destruction?

by rjt (Curate)
on Nov 09, 2012 at 22:30 UTC ( [id://1003212]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    Memory leak test. Ctrl-C to stop.
    
    20 threads (17831 lifetime),   845.99 MiB RSS [================ ] / ^C
    
  2. or download this
    use warnings;
    use strict;
    use threads;
    ...
        threads->create(\&highmem) if (threads->list() < $NUM);
        print_mem();
    } while(sleep(0.1));
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1003212]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2025-03-24 20:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When you first encountered Perl, which feature amazed you the most?










    Results (65 votes). Check out past polls.

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.