Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 478 Bytes

example_04.rst

File metadata and controls

17 lines (10 loc) · 478 Bytes

Multiprocessing

Download: example_04_multiprocessing.py <../../../examples/example_04_multiprocessing.py>

This code snippet shows how to use multiprocessing with locks. In order to use the queue based multiprocessing one simply needs to make the following change for the environment creation:

wrap_mode=pypetconstants.WRAP_MODE_QUEUE.

../../../examples/example_04_multiprocessing.py