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

gh-99113: A Per-Interpreter GIL! #104209

Closed

Conversation

ericsnowcurrently
Copy link
Member

@ericsnowcurrently ericsnowcurrently commented May 5, 2023

This is the culmination of PEP 684 (and of my 8-year long multi-core Python project)!

Each subinterpreter may now be created with its own GIL (via Py_NewInterpreterFromConfig()). If not so configured then the interpreter will share with the main interpreter--the status quo since the subinterpreters were added decades ago. The main interpreter always has its own GIL and subinterpreters from Py_NewInterpreter() will always share with the main interpreter.

(FYI, I've split up the original gh-99114 into multiple PRs, with this one being the final one in the chain.)

@ericsnowcurrently
Copy link
Member Author

oops, this is the wrong branch

@ericsnowcurrently ericsnowcurrently deleted the per-interpreter-gil-old branch May 5, 2023 18:00
@ericsnowcurrently ericsnowcurrently restored the per-interpreter-gil-old branch May 5, 2023 18:00
@ericsnowcurrently ericsnowcurrently deleted the per-interpreter-gil-old branch May 5, 2023 18:00
@ericsnowcurrently ericsnowcurrently restored the per-interpreter-gil-old branch May 5, 2023 18:00
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.

1 participant