CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Advanced: Re: [FishMonger] Sharing statics variable between Threads: Edit Log



rodeo
New User

Sep 5, 2013, 3:46 AM


Views: 11609
Re: [FishMonger] Sharing statics variable between Threads

I have a question to the Devel::NYTProf-Modul.
How the script know which variable is mean.
Can I use the variable "normally" or I need a function to access?

Here a simple example:


Code
use Parallel::ForkManager; 
use Devel::NYTProf;

my $test;

$test=(1..10);
my $pm=new Parallel::ForkManager(4);

for(my $i=0;$i<10;$i++)
{
$pm->start and next;
print $test[$i];
$pm->finish;
}


Variable $test has data from more than 10GB.


(This post was edited by rodeo on Sep 5, 2013, 3:53 AM)


Edit Log:
Post edited by rodeo (New User) on Sep 5, 2013, 3:46 AM
Post edited by rodeo (New User) on Sep 5, 2013, 3:53 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives