in reply to Status of memory leak problem?
What do you see if you run this?
#! perl -slw use strict; use threads; use threads::shared; use Time::HiRes qw[ time ]; my $count :shared = 0; async{ my $last = $count; while( sleep 1 ) { my $now = $count; printf "%d threads/second\n", $now - $last; $last = $now; } }->detach; threads->create( sub { lock $count; ++$count; } )->join while 1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Status of memory leak problem?
by zwon (Abbot) on Apr 03, 2010 at 19:31 UTC | |
by BrowserUk (Patriarch) on Apr 03, 2010 at 19:38 UTC | |
by zwon (Abbot) on Apr 03, 2010 at 19:41 UTC | |
by BrowserUk (Patriarch) on Apr 03, 2010 at 19:48 UTC | |
by AriSoft (Sexton) on Apr 04, 2010 at 10:47 UTC | |
|