# PEP 703 (Making the Global Interpreter Lock Optional in CPython) acceptance

**URL:** <https://discuss.python.org/t/pep-703-making-the-global-interpreter-lock-optional-in-cpython-acceptance/37075>\
**Category:** Core Development\
**Created:** [October 24, 2023, 9:47pm UTC](https://discuss.python.org/t/pep-703-making-the-global-interpreter-lock-optional-in-cpython-acceptance/37075 "2023-10-24T21:47:57Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![waleedmebane](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/waleedmebane/32/11831_2.png) [@waleedmebane](https://discuss.python.org/u/waleedmebane)\
**Post date:** [November 2, 2023, 10:45pm UTC](https://discuss.python.org/t/pep-703-making-the-global-interpreter-lock-optional-in-cpython-acceptance/37075/8 "2023-11-02T22:45:23Z")

</div>

In case it is useful to know and not already known, OCaml went through a similar transition recently to get to its “multicore” version. In previous versions there was the equivalent of a GIL.  
Their approach to backward compatibility was:  
The unit of parallelism is something new called a “domain”. At startup there is a single domain and any thread created using the standard library’s Thread module works just as before, as though there were a GIL. When there are multiple domains, domains run in parallel, but threads running in each domain have the equivalent of an inside-of-domain GIL. When there is a single thread per domain, that is like what I understand to be called “free-threading” here.

---

_[View the full topic](https://discuss.python.org/t/pep-703-making-the-global-interpreter-lock-optional-in-cpython-acceptance/37075)._
