parallel processing fork manager inspired by Parallel::Prefork in CPAN
Project description
- This module is inspired by Parallel::Prefork in CPAN.
As Parallel::Prefork, this module is intended to be some operations done in parallel.
Simple example of usage is followings
>>> from python_prefork import PythonPrefork >>> pp = PythonPrefork() >>> while not pp.signal_received: >>> if pp.start(): continue >>> >>> run() # do some task in child process >>> >>> pp.finish() >>> pp.wait_all_children()
- Some options can be set in constructor
[ max_workers ] maximum number of child processes to fork
[trap_signals] arrays of signals to be trapped. parent process will send these signals to all children
[on_reap_cb] function to be called when a child is end. This function must have two parameters, child pid and exit status.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
python_prefork-0.1-py2.5.egg
(5.7 kB
view details)
File details
Details for the file python_prefork-0.1-py2.5.egg
.
File metadata
- Download URL: python_prefork-0.1-py2.5.egg
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1575e397d05635ad98b590e6dfab05f23cf2d87c5a1a0a6745943769f76f361 |
|
MD5 | a1796b2970106dfa5ba045d6c032cfb5 |
|
BLAKE2b-256 | 09e33060a1ee8ee0d7c95e019b5f33728763af23d0546ed244593f9d5644f735 |