python - PyPy vs Cpython, will either one drop GIL and support POSIX Threads? -
given gil limits pythons ability support true threads, possible strip out of current python implementations language can support true multithreading. furthermore, assuming gil dropped, mean multi-core threading come scripting/interpreted languages such python , ruby?
your question flawed. python supports threads fine. in fact, when create thread in python program running under *nix creates 1 additional pthreads
thread, no questions asked. restriction python code won't run in parallel (but run concurrently, interleaved, etc.). code that's not under gil, such i/o, doesn't prevent other threads running python code.
as removing gil... it's hard. like, really hard. , me can assume it's infeasible (hey, @ least we'll pleasantly surprised if superhuman does succeed). other implementations (jython, ironpython) don't have gil, approaches aren't practical cpython (and not easy pypy either, hear) , can't replace cpython lag behind lot, don't support c extensions, less portable more exotic platforms, etc.
that said, pypy developers working on stm solution (latest update) free pypy gil. cpython on other hand? don't think there's chance, stm, when potential abi , api breakage taken account.
Comments
Post a Comment