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.895.502 Times

Thread::Pool 0.32

  Date Added: November 23, 2010  |  Visits: 1.030

Thread::Pool

Report Broken Link
Printer Friendly Version


Product Homepage
Download (85 downloads)



Thread::Pool contains group of threads for performing similar jobs. SYNOPSIS use Thread::Pool; $pool = Thread::Pool->new( { optimize => cpu, # default: memory pre => sub {shift; print "starting worker with @_n", do => sub {shift; print "doing job for @_n"; reverse @_}, post => sub {shift; print "stopping worker with @_n", stream => sub {shift; print "streamline with @_n", monitor => sub { print "monitor with @_n", pre_post_monitor_only => 0, # default: 0 = also for "do" checkpoint => sub { print "checkpointingn" }, frequency => 1000, autoshutdown => 1, # default: 1 = yes workers => 10, # default: 1 maxjobs => 50, # default: 5 * workers minjobs => 5, # default: maxjobs / 2 }, qw(a b c) # parameters to "pre" and "post" routine ); $pool->job( qw(d e f) ); # not interested in result $jobid = $pool->job( qw(g h i) ); @result = $pool->result( $jobid ); # wait for result to be ready $jobid = $pool->job( qw(j k l) ); @result = $pool->result_dontwait( $jobid ); # do _not_ wait for result @result = $pool->waitfor( qw(m n o) ); # submit and wait for result $pool->add; # add worker(s) $pool->remove; # remove worker(s) $pool->workers( 10 ); # adapt number of workers $pool->join; # wait for all removed worker threads to finish $workers = $pool->workers; $todo = $pool->todo; $removed = $pool->removed; $pool->maxjobs( 100 ); # adapt or (de-)activate job throttling $pool->minjobs( 10 ); $pool->autoshutdown( 1 ); # shutdown when object is destroyed $pool->shutdown; # wait until all jobs done $pool->abort; # finish current job and remove all workers $done = $pool->done; # simple thread-use statistics $notused = $pool->notused; Thread::Pool->remove_me; # inside "do" only.

Requirements: No special requirements
Platforms: Linux
Keyword: Job Libraries Print Programming Result Sub Threadpool Wait For Workers
Users rating: 0/10

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


THREAD::POOL RELATED
Desktop Utilities  -  Print Management - CZ Print Job Tracker 5.0.0.46
CZ Print Job Tracker print management software provides easy software solution for Windows NT/2000/XP/2003/Vista/2008/7 print-server and non-print server printing environment i.e. direct IP printer or workstation connected printer. The software...
50.55 MB  
Printer Tools  -  Raw Print Server 1.0
Raw Print Server project is a "raw" print server that makes it possible for a computer to act as a "Socket API" or "AppSocket" print server. This software would not exist without Sam Rushings excellent asyncore module, nor would it exist without...
28.67 KB  
Database Tools  -  QueryPrint 1.0
QueryPrint class allows you to print the result of a database query as an HTML table. A separate module defines the printing. It also allows the result to be displayed on multiple pages.
10 KB  
Programming  -  Scalide 2009-03-20
Scalide is a Swing Based read-eval-print loop (REPL) / interactive toplevel / interpreter for the Scala programming language. Whatever name you choose the result is the same: It lets the budding programmer arbitrarily divide their code into cells...
9.77 MB  
Graphics Editors  -  MAGIX Xtreme Print Studio 1.0
Create matching covers, labels, inlays, and booklets for CDs and DVDs in a flash! MAGIX Xtreme Print Studio is the ideal program for unique CD/DVD cases and labels. Quickly and easily design and print labels, covers, inlays, and booklets. Even...
24.17 MB  
Code Management Tools  -  Virgil B-03
Virgil projetc is an new, object-oriented, light-weight programming language that is designed for building software for resource-constrained embedded systems at the lowest level. Microcontroller programmers can now develop complete software...
583.68 KB  
Printer Tools  -  PyKota Print Quota System 1.26
PyKota is a complete GPLed Print Quota and Accounting Software Solution for the Common UNIX Printing System (aka CUPS) on GNU/Linux and Unix-like operating systems, which offers a great flexibility with regard to the page accounting methods it...
 
Libraries  -  LibsX 2004-01-23
LibsX (formerly LibSpeedX) is a C++ multi-platform set of basic libraries (like strings, ini files, etc) optimized for speed and made from scratch. LibsXs goal is to make programs like games with basic libraries highly optimized for speed and...
27.65 KB  
Miscellaneous  -  Associating parameters with a function 1.2
In functional programming, currying is a way to bind arguments with a function and wait for the rest of the arguments to show up later. You "curry in" the first few parameters to a function, giving you a function that takes subsequent parameters...
 
Weather  -  Rainspotting - Rain Outlook 1.6.1
Personal Precipitation Prediction for your Pocket! Should I hang the washing on the line, or wait for those clouds to pass? Do I take an umbrella on my walk? Can I get home without getting wet? Should I start this painting job?...
4.9 MB  
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