python_prefork

Parallel processing fork manager inspired by Parallel::Prefork in CPAN
Download

python_prefork Ranking & Summary

Advertisement

  • Rating:
  • License:
  • MIT/X Consortium Lic...
  • Price:
  • FREE
  • Publisher Name:
  • Matsumoto Taichi
  • Publisher web site:
  • http://github.com/taichino/

python_prefork Tags


python_prefork Description

Parallel processing fork manager inspired by Parallel::Prefork in CPAN python_prefork is a Python module 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 maximum number of child processes to fork arrays of signals to be trapped. parent process will send these signals to all children function to be called when a child is end. This function must have two parameters, child pid and exit status. Requirements: · Python


python_prefork Related Software