Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Libraries

    python_prefork 0.1.2

    Download button

    No screenshots available
    Downloads: 242  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Matsumoto Taichi | More programs
    MIT/X Consortium Lic... / FREE
    December 13th, 2009, 18:57 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    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

     [ 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.


    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    parallel processing | Python library | fork manager | parallel | processing | fork

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM