Table of Contents

Module: __init__ Bio/Tools/MultiProc/__init__.py
Imported modules   
import Scheduler
import Task
import time
Functions   
run
  run 
run (
        nprocs,
        fn,
        fn_args=(),
        fn_keywds={},
        sleep=0.1,
        always_use_scheduler=0,
        )

run(nprocs, fn[, fn_args][, fn_keywds][, sleep])

Run nprocs copies of fn concurrently. The first two parameters of fn should be a process number (0 to nprocs-1) and the total number of processes. Additional arguments and keywords can be passed in the fn_args and fn_keywds parameters. Sleep is the amount of time the scheduler should wait between process polls.

Exceptions   
ValueError, "nprocs %d out of range" % nprocs

Table of Contents

This document was automatically generated on Mon Jul 1 12:03:05 2002 by HappyDoc version 2.0.1