简体   繁体   中英

Parallel in Perl for a related serial jobs

I had a perl script to implement a serial jobs that the following job taking previous job's output. I am wondering if I can implement it in parallel? Which module should I use? Thanks.

Based on what you've said thus far I really don't know if this will help you, but just for the sake of trying this documentation can at least provide information on how you would have communication between your processes:

http://perldoc.perl.org/perlipc.html

Furthermore, if you're starting to create parallel Perl software, making sure that you know event driven programming can be very helpful. Here is the AnyEvent module that makes event driven programming very slick and simple:

https://metacpan.org/pod/AnyEvent

But more to your point about suggesting modules for parallel jobs, AnyEvent has a simple wrapper around fork() which could also be useful to your cause. This is the module that specifically deals with getting information back from "children":

https://metacpan.org/pod/AnyEvent::Fork::RPC

If none of that is actually helpful and you just are looking for some simple steps into parallel software writing, this module makes that easy:

https://metacpan.org/pod/Parallel::Simple

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM