pool.pl - Simple 'threads' example
A simplistic example illustrating the following:
Management of a pool of threads
Communication between threads using queues
Timing out and cancelling threads
Interrupting a threaded program
Cleaning up threads before terminating
threads, threads::shared, and Thread::Queue
Jerry D. Hedden, <jdhedden AT cpan DOT org>
Copyright 2006 - 2009 Jerry D. Hedden. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install threads, copy and paste the appropriate command in to your terminal.
cpanm
cpanm threads
CPAN shell
perl -MCPAN -e shell install threads
For more information on module installation, please visit the detailed CPAN module installation guide.