Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.884.899 Times

Parallel::Queue 1.00

  Date Added: August 22, 2010  |  Visits: 1.019

Parallel::Queue

Report Broken Link
Printer Friendly Version


Product Homepage
Download (71 downloads)



Parallel::Queue is a Perl module to fork or thread a list of closures N-way parallel. SYNOPSIS # example queue: # only squish files larger than 8KB in size. figure # that the system can handle four copies of squish # running at the same time without them interfering # with one another. my @queue = map { -s > 8192 ? sub{ squish $_ } : () } @filz; # functional: pass in the count and list of coderefs. # # adding runqueue exports the subroutine into # the current package. useful for non-OO situations. # # run the queue 4 way parallel. use Parallel::Queue qw( runqueue verbose fork ); my @remaining = runqueue 4, @queue; die "Incomplete jobs" if @remaining; # OO: generate queue manager and use without the # runqueue arguments, construct a queue manager, # and use it to run the jobs use Parallel::Queue; my $quemgr = Parallel::Queue->construct( thread ); $quemgr->runqueue( 4, @queue ); die "Incomplete jobs" if @queue; # call Parallel::Queue with the default configuration # (fork quietly). require Parallel::Queue; Parallel::Queue->runqueue( 4, @queue ); # pre-define defaults for the objects: leave # out runqueue, set the rest, and construct # an object. the one here gets verbose, thread, # and debug all set to true. use Parallel::Queue qw( verbose thread ); my $quemgr = Parallel::Queue->construct( debug ); my @remaining = $quemgr->runqueue( 4, @queue ); Given a count and an array of coderefs (most likely closures), runqueue will run the jobs in parallel. The jobs can be run via fork or detached threads [see known issues for threading]. Jobs on the queue are executed until one of them exits non-zero, the fork/thread operation fails, or all of them are dispatched (i.e., the queue is empty)..

Requirements: No special requirements
Platforms: Linux
Keyword: Fork Jobs Libraries List List Of Parallelqueue Perl Module Programming Queue Runqueue Thread To Fork
Users rating: 0/10

License: Freeware Size: 8.19 KB
USER REVIEWS
More Reviews or Write Review


PARALLEL::QUEUE RELATED
Libraries  -  List::Search 0.3
List::Search is a Perl module for fast searching of sorted lists. SYNOPSIS use List::Search qw( list_search nlist_search custom_list_search ); # Create a list to search my @list = sort qw( bravo charlie delta ); # Search for a value,...
5.12 KB  
Libraries  -  List::RewriteElements 0.09
List::RewriteElements is a Perl module that can create a new list by rewriting elements of a first list. SYNOPSIS use List::RewriteElements; Constructor Simplest case: Input from array, output to STDOUT. $lre =...
26.62 KB  
Libraries  -  List::Compare 0.33
List::Compare is a Perl module to compare elements of two or more lists. SYNOPSIS The bare essentials: @Llist = qw(abel abel baker camera delta edward fargo golfer); @Rlist = qw(baker camera delta delta edward fargo golfer hilton); $lc =...
184.32 KB  
Libraries  -  List::MRU 0.04
List::MRU is a Perl module that implements a simple fixed-size MRU-ordered list. SYNOPSIS use List::MRU; # Constructor $lm = List::MRU->new(max => 20); # Constructor with explicit eq subroutine for obj equality tests $lm =...
4.1 KB  
Libraries  -  List::Part 0.03
List::Part is a Perl module that allows you to partition one array into several. SYNOPSIS use List::Part; ($good, $bad)=part { !/substring/ } @array; #store arrayrefs into $good and $bad (*good, *bad)=part { !/substring/ } @array; #store...
4.1 KB  
Libraries  -  List::Maker 0.0.3
List::Maker is a Perl module that can generate more sophisticated lists than just $a..$b. SYNOPSIS use List::Maker; @list = ; # (1,2,3,4,5,6,7,8,9,10) @list = ; # (10,9,8,7,6,5,4,3,2,1) @list = #...
7.17 KB  
Libraries  -  List::MoreUtils 0.22
List::MoreUtils is a Perl module that can provide the stuff missing in List::Util. SYNOPSIS use List::MoreUtils qw(any all none notall true false firstidx first_index lastidx last_index insert_after insert_after_string apply after after_incl...
22.53 KB  
Libraries  -  List::Comprehensions 0.13
List::Comprehensions is a Perl module that allows for list comprehensions in Perl. SYNOPSIS use List::Comprehensions; use warnings; my @res = (); @res = comp1 { [ @_ ] } [0..4], [0..4], [0..4]; no warnings once; @res = comp2 { [$i, $j,...
3.07 KB  
Libraries  -  List::Pairwise 0.23
List::Pairwise is a Perl module with map/grep arrays and hashes pairwise. SYNOPSIS use List::Pairwise qw(:all); my %a = ( snoogy1 => 4, snoogy2 => 2, NOT => 4, snoogy3 => 5, hehe => 12, ); # keys/values emulation (only slower) my...
20.48 KB  
Libraries  -  I18N::AcceptLanguage 1.04
I18N::AcceptLanguage is a Perl module that matches language preference to available languages. SYNOPSIS use I18N::AcceptLanguage; my $supportedLanguages = [( en-us, fr )]; my $acceptor = I18N::AcceptLanguage->new(); my $language =...
9.22 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.11.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
2.73 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB