Skip to content

Conversation

tiran
Copy link
Contributor

@tiran tiran commented Apr 22, 2024

Changes

Which issue is resolved by this Pull Request:
Resolves #956

Description of your changes:

Multiprocessing uses fork as default start method on Linux. Windows and macOS default to spawn. The fork method is not safe in multi-threaded environments. It is also incompatible with some hardware accelerators.

Use spawn on all platforms.

@tiran tiran marked this pull request as draft April 22, 2024 07:56
Multiprocessing uses `fork` as default start method on Linux. Windows
and macOS default to `spawn`. The `fork` method is not safe in a
multi-threaded environment. It is also incompatible with some
hardware accelerators.

Use `spawn` on all platforms.

Signed-off-by: Christian Heimes <cheimes@redhat.com>
@tiran tiran force-pushed the multiprocessing-spawn branch from c145862 to cd8939d Compare April 22, 2024 09:44
@tiran tiran marked this pull request as ready for review April 22, 2024 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use spawn instead of fork for multiprocessing
3 participants