Skip to main content

Easy to use object-oriented thread pool framework

Project description

A thread pool is an object that maintains a pool of worker threads to perform time consuming operations in parallel. It assigns jobs to the threads by putting them in a work request queue, where they are picked up by the next available thread. This then performs the requested operation in the background and puts the results in another queue.

The thread pool object can then collect the results from all threads from this queue as soon as they become available or after all threads have finished their work. It’s also possible, to define callbacks to handle each result as it comes in.

Note

This module is regarded as an extended example, not as a finished product. Feel free to adapt it too your needs.

Project details


Release history Release notifications

History Node

1.3.2

History Node

1.3.1

History Node

1.3.0

History Node

1.2.7

History Node

1.2.6

This version
History Node

1.2.5

History Node

1.2.4

History Node

1.2.3

History Node

1.2.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
threadpool-1.2.5-py2.5.egg (12.9 kB) Copy SHA256 hash SHA256 Egg 2.5 Nov 19, 2008
threadpool-1.2.5.tar.bz2 (32.8 kB) Copy SHA256 hash SHA256 Source None Nov 19, 2008
threadpool-1.2.5.zip (71.5 kB) Copy SHA256 hash SHA256 Source None Nov 19, 2008

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page