The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

pool.pl - Simple 'threads' example

DESCRIPTION

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

SEE ALSO

threads, threads::shared, and Thread::Queue

AUTHOR

Jerry D. Hedden, <jdhedden AT cpan DOT org>

COPYRIGHT AND LICENSE

Copyright 2006 - 2007 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.