Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change from multi-threading to multiprocessing #6

Open
20urc3 opened this issue Nov 21, 2023 · 0 comments
Open

Change from multi-threading to multiprocessing #6

20urc3 opened this issue Nov 21, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed
Milestone

Comments

@20urc3
Copy link
Owner

20urc3 commented Nov 21, 2023

Python's Global Interpreter Lock (GIL) limits the execution of multiple threads in parallel due to its restrictions on simultaneous thread execution, especially for CPU-bound tasks. For CPU-bound operations, using the multiprocessing module might be more effective since it bypasses the GIL by spawning separate processes.

https://docs.python.org/3/library/multiprocessing.html

@20urc3 20urc3 added enhancement New feature or request help wanted Extra attention is needed labels Nov 21, 2023
@20urc3 20urc3 added this to the v2.1 milestone Nov 21, 2023
@20urc3 20urc3 self-assigned this Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant