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

>What has GIL to do with the thread model vs asyncio?

Obviously the fact that the GIL prevents effient use of threads, so asyncio becomes the way to get more load from a single CPU by taking advantage of the otherwise blocking time.



How would the GIL prevent the use of "green" threads? Don't confuse the programming model with the implementation. For example, as far as I understand, gevent threads are not affected by the GIL when running on the same OS thread.




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

Search: