TABLE OF CONTENTS
Thread-pools
DESCRIPTION
Thread-pool is a mechanism for achieving concurrency of execution. It consists of multiple threads waiting for jobs to be allocated for concurrent execution.
A typical usage of thread-pool would be the following: suppose we have N jobs to perform on M computers or workers, where N >> M. This task can be efficiently managed with a thread-pool, which will initially distribute M jobs to M workers, i.e., one job per worker. When the first job finishes, it submits the next job to a free worker, and so on until all jobs are completed.
The Tcl thread package is required to use thread-pools in PWTK (N.B. the Thread package is named 'tcl-thread' in Linux distros).