There are many instances when one needs to process certain objects on seperate threads. But spawning a seperate thread per object may cause the system to crash. The Thread Pooling Framework can be used to process the the objects on a predefined number of threads. If all threads are busy, the objects are kept in the pool. Whenever a thread ends, an objects is taken from the pool and processed on a new thread. This continues until the pool is empty.
|Tags||Software Development Libraries Java Libraries Utilities|
Release Notes: The framework now runs in a separate thread. Items can be added in the pool as long as the manager is active. A wait notify mechanism was incorporated instead of infinite loops. JavaDocs were also included.