Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Parallel::SubFork::Task 0.10

    Download button

    No screenshots available
    Downloads: 325  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Emmanuel Rodriguez | More programs
    Perl Artistic License / FREE
    May 9th, 2012, 04:50 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Parallel::SubFork::Task description

    Run Perl functions in forked processes.

    Parallel::SubFork::Task is a class to run Perl functions in forked processes.

    SYNOPSIS

     use Parallel::SubFork::Task;
     
     # Run a some arbitrary Perl code in a separated process
     my $task = Parallel::SubFork::Task->start(&job, @args);
     $task->wait_for();
     
     # Create and execute the task (same as above)
     my $task2 = Parallel::SubFork::Task->new(&job, @args);
     $task2->execute();
     $task2->wait_for();
     
     # Access any of the properties
     printf "PID of task was %s
    ", $task->pid;
     printf "Args of task where %s
    ", join(", ", $task->args);
     printf "Exit code: %d
    ", $task->exit_code;


    This module provides a simpler way to run arbitrary Perl code in a different process. This module consists of a fancy wrapper over the system calls fork and waitpid. The idea is to execute any standard Perl function in a different process without any of the inconveniences of managing the forks by hand.


    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    Perl functions | forked processes | Perl module | Perl | functions | processes

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM