当前位置:网站首页>2020-08-20: the difference between go and python?
2020-08-20: the difference between go and python?
2020-11-06 21:55:00 【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 .
版权声明
本文为[Fuda Dajia architect's daily question]所创,转载请带上原文链接,感谢
边栏推荐
- 意外的元素..所需元素..
- Countdown | 2020 PostgreSQL Asia Conference - agenda arrangement of Chinese sub Forum
- 2020-09-09:裸写算法:两个线程轮流打印数字1-100。
- What the hell is fastthreadlocal? The existence of ThreadLocal!!
- 磁存储芯片STT-MRAM的特点
- Can you do it with only six characters?
- Python basic data type -- tuple analysis
- GitHub: the foundation of the front end
- The role of theme music in games
- 迅为-iMX6ULL开发板上配置AP热点
猜你喜欢
2020 database technology conference helps technology upgrade
How about small and medium-sized enterprises choose shared office?
An article will take you to understand SVG gradient knowledge
Js字符串-String字符串对象方法
How much disk space does a new empty file take?
Novice guidance and event management system in game development
【涂鸦物联网足迹】涂鸦云平台全景介绍
Mongo user rights login instruction
#JVM 类加载机制
Introduction to the development of small game cloud
随机推荐
ado.net and asp.net The relationship between
What grammar is it? ]
NAND FLASH的接口控制设计
ES6 learning notes (3): teach you to use js object-oriented thinking to realize the function of adding, deleting, modifying and checking tab column
Elasticsearch database | elasticsearch-7.5.0 application construction
Git rebase is in trouble. What to do? Waiting line
An article takes you to understand CSS3 picture border
Epu360: all the H5 templates you want are here, e-book, big turntable, red envelope rain, questionnaire survey
2020-08-24:什么是小文件?很多小文件会有什么问题?很多小文件怎么解决?(大数据)
Some operations kept in mind by the front end foundation GitHub warehouse management
C and C / C + + mixed programming series 5 - GC collaboration of memory management
How much disk space does a new empty file take?
The isolation level of transaction and its problems
【涂鸦物联网足迹】物联网基础介绍篇
Call analysis of start method in JNI thread and callback analysis of run method
Markdown tricks
The method of realizing high SLO on large scale kubernetes cluster
Small program introduction to proficient (2): understand the four important files of small program development
ES6 learning notes (5): easy to understand ES6's built-in extension objects
[forward] how to view UserData in Lua