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