当前位置:网站首页>并发和并行有什么区别?
并发和并行有什么区别?
2022-06-23 22:18:00 【王家五哥】
并发:两个或多个事件在同一时间间隔发生。
并行:两个或者多个事件在同一时刻发生。
并行是真正意义上,同一时刻做多件事情,而并发在同一时刻只会做一件事件,只是可以将时间切碎,交替做多件事情。
网上有个例子挺形象的:
你吃饭吃到一半,电话来了,你一直到吃完了以后才去接,这就说明你不支持并发也不支持并行。
你吃饭吃到一半,电话来了,你停了下来接了电话,接完后继续吃饭,这说明你支持并发。
你吃饭吃到一半,电话来了,你一边打电话一边吃饭,这说明你支持并行。
边栏推荐
- Differences between broadcastreceiver and localbroadcastmanager
- 【Bug】C# IQueryable里的元素更改不了值
- 完整开源项目之诗词吧 APP
- 2018/gan:self attention generating adversarial networks
- 再来一个高仿开眼的短视频APP
- Multi store drug inventory system source code large chain drugstore management system source code
- Solve the problem that slf4j logs are not printed
- What are the good solutions for industrial control safety of production line
- Stm32----- timer
- 冶金行业数字化供应链管理系统:平台精益化企业管理,助力产业高质量发展
猜你喜欢

图扑软件智慧风电:数字孪生 3D 风机智能设备运维

List<? Extensions T > and list <? Super T > difference

Loop caused by add of sublist in list

List<? extends T>和List<?super T>区别

What are the good solutions for industrial control safety of production line

Stm32-------adc (voltage detection)

Postman return value Chinese garbled????

Stm32----- timer

What is the production process of enterprise website? How long does it take to design and build a website?

6 大完整开源项目,一次学个够
随机推荐
Preliminary understanding of 3D printing and laser cutting process
冶金行业数字化供应链管理系统:平台精益化企业管理,助力产业高质量发展
Golang 类型断言
三维向量场中的通量
How to achieve energy-saving and reasonable lighting control in order to achieve the "double carbon" goal
嵌入式接口复习资料
List<? Extensions T > and list <? Super T > difference
Unity text component space newline problem
2022山东健博会,济南国际大健康产业博览会,中国营养健康展
The digital transformation index report 2021 released by Tencent Research Institute has accelerated the digital transformation and upgrading of mainland enterprises!
工作中一些常用的工具函數
生成所有可能的二叉搜索树
Improvement of DC power distribution with open hall current sensor
点乘和叉乘
MySQL导致索引失效的情况详解
电子元器件行业B2B交易管理系统:提升数据化驱动能力,促进企业销售业绩增长
Smart doc + Torna compatible version
Innovative lampblack supervision in the management measures for the prevention and control of lampblack pollution in Deyang catering service industry (Draft for comments)
【 GBASE的那些事儿】系列直播活动第02期《GBase 8s高可用技术及案例分析法》
Detailed explanation of index invalidation caused by MySQL