3 ms·
Revisiting thread priorities and the new GIL
- viraptor 17y agoCan anyone explain shortly, or point to a source describing why is the GIL actually needed? Lots of sources say "it would make GC very complicated otherwise", or "current design would need lots of changes", but I cannot find any detailed answers. The question is - why cannot python migrate to a Boehm-like GC with "stop the world" step and kill the GIL completely? What is the biggest problem? Update: actually the official wiki turned out to have some of the answers... http://wiki.python.org/moin/GlobalInterpreterLock http://wiki.python.org/moin/GlobalInterpreterLock - it seems that backwards compatibility (extensions, destruction timing) is the biggest problem
- ableal 17y agoYou're asking a bit more than is answered directly here, but it may help, if you haven't seen it yet (skip to the middle of the page): http://jessenoller.com/2009/02/01/python-threads-and-the-global-interpreter-lock/ http://jessenoller.com/2009/02/01/python-threads-and-the-glo...
- viraptor 17y agoYup - that link's got a lot more details missing elsewhere. Thanks a lot!