当前位置:网站首页>2020-08-20: the difference between go and python?

2020-08-20: the difference between go and python?

2020-11-06 21:55:45 Fuda Dajia architect's daily question

Fogo's answer 2020-08-20:

1.golang Is based on gpm Mechanism , It can be multi-core and multi-threaded .Python The corollary is eventloop Model (IO Multiplexing technology ) Realization , The process is strict 1:N Relationship , That is to say, a thread corresponds to multiple coroutines . Although asynchronous can be achieved I/O, But it can't use multi-core effectively (GIL).
2.golang use go func.python use import asyncio,async/await expression .


Comment on

版权声明
本文为[Fuda Dajia architect's daily question]所创,转载请带上原文链接,感谢