PyDocs

Nav

Concurrent Execution

set_start_method

multiprocessing

function · Added in 3.4 (source) not Androidnot iOSnot WASI
  • set_start_method(method, force=False)
Set the method which should be used to start child processes. The method argument can be 'fork', 'spawn' or 'forkserver'. Raises RuntimeError if the start method has already been set and force is not True. If method is None and force is True then the start method is set to None. If method is None and force is False then the context is set to the default context.
0 Examples
No examples for multiprocessing/set_start_method.
See Also
No see-alsos for multiprocessing/set_start_method
0 Notes
No notes for set_start_method