tango.core.ThreadPool

This module provides an implementation of the classical thread-pool model.

Members

Classes

ThreadPool
class ThreadPool(Args...)

A thread pool is a way to process multiple jobs in parallel without creating a new thread for each job. This way the overhead of creating a thread is only paid once, and not once for each job and you can limit the maximum number of threads active at any one point.

Functions

main
void main(char[][] args)

Invoke as "threadpool 1 2 3 4 5 6 7 10 20" or similar

Meta

License

BSD style: $(LICENSE)

Authors

Anders Halager