On this page
multiprocessing.get_start_method
Prev: multiprocessing.get_logger | Up: multiprocessing | Next: multiprocessing.JoinableQueue
Rel: multiprocessing.active_children, multiprocessing.allow_connection_pickling, multiprocessing.Array, multiprocessing.AuthenticationError
Ref: docs.python.org — multiprocessing.get_start_method
Tags: #public #python3 #stdlib #multiprocessing
Import
import multiprocessing
from multiprocessing import get_start_method
Signature & Overview
multiprocessing.get_start_method(allow_none=False)
multiprocessing.get_start_method() function.
Usage
import multiprocessing as mp
method = mp.get_start_method()
assert method in ("spawn", "fork", "forkserver")
Gotchas
- Defaults:
"spawn"on macOS and Windows;"forkserver"(Python 3.14+) or"fork"on Linux.
REPL Inspect
from multiprocessing import get_start_method
help(get_start_method)
Linked from
Related notes
- tuts/python3/stdlib_module/multiprocessing/get_logger Linked here; links to this page; shared tags: #multiprocessing, #stdlib
- tuts/python3/stdlib_module/multiprocessing/JoinableQueue Linked here; links to this page; shared tags: #multiprocessing, #stdlib
- tuts/python3/stdlib_module/multiprocessing Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/multiprocessing/active_children Linked here; shared tags: #multiprocessing, #stdlib
- tuts/python3/stdlib_module/multiprocessing/allow_connection_pickling Linked here; shared tags: #multiprocessing, #stdlib
- tuts/python3/stdlib_module/multiprocessing/Array Linked here; shared tags: #multiprocessing, #stdlib
- tuts/python3/stdlib_module/multiprocessing/AuthenticationError Linked here; shared tags: #multiprocessing, #stdlib
- tuts/python3/stdlib_module/multiprocessing/Barrier shared tags: #multiprocessing, #stdlib
- tuts/python3/stdlib_module/multiprocessing/BoundedSemaphore shared tags: #multiprocessing, #stdlib
- tuts/python3/stdlib_module/multiprocessing/BufferTooShort shared tags: #multiprocessing, #stdlib