Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yes. Actually you get one gil per interpretter, and can spawn your thread in sub interpretter.

Cpython could do it, but currently can't provide much since the api to do it is only accessible from c.



Doesn't CPython do this with the multiprocessing module?

https://docs.python.org/2/library/multiprocessing.html


No, this spawns several process, while sub interpretters allow you to have several of them in one single process, making data sharing much cheaper.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: