5 ms·
How multithreaded programs depend on the GIL rather than use proper locking? The No GIL project might break a lot of multithreaded apps.
by orbisvicis 3y ago
How multithreaded programs depend on the GIL rather than use proper locking? The No GIL project might break a lot of multithreaded apps.
- gyrovagueGeist 3y agoIt would require no changes from pure Python apps (as the nogil implementation preserves the current behavior & thread safety of python objects). But any C extensions that rely on the GIL for thread safety would be an issue..
- avidphantasm 3y agoThey must've explored this, but couldn't one make a GIL emulator/wrapper for legacy extensions so that they can still work in GIL-less Python while they are (hopefully) updated to work with the new synchronization primitives?