... eats memory? I ran this and watched TOP and noticed that the memory perl was using kept increasing. I thought join cleaned up after a thread?#!/usr/bin/perl use Thread; use Time::HiRes qw(usleep); while(usleep(100)) { my $thr1 = new Thread \&doNothing1; $thr1->join; } sub doNothing {}
In reply to Perl Threads and Memory Leaking by aphexcoil
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |