++ed by:
EMAZEP TOMMY MARIOROY MMUSGROVE EGOR

5 PAUSE user(s)
3 non-PAUSE user(s).

Jerry D. Hedden
and 1 contributors

NAME

pool_reuse.pl - Simple 'threads' example with a reusable thread pool

DESCRIPTION

A simplistic example illustrating the following:

  • Creation of a pool of reusable threads

  • Threads use a queue to indicate readiness for handling work

  • Sending work to threads using queues

  • 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 - 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.