当前位置:网站首页>IO的几种模型 阻塞,非阻塞,io多路复用,信号驱动和异步io
IO的几种模型 阻塞,非阻塞,io多路复用,信号驱动和异步io
2022-07-01 13:16:00 【是小晴晴呀】
推荐黑马的redis 网络模型,
首先要明白 用户态和 内核态
避免用户应用 导致冲突 甚至 内核的崩溃,用户的英语和内核是要分离开的
按照进程的寻址控件,划分两部分 :内核态,用户态
1.阻塞 io
2.非阻塞 io
在性能方面,虽然第一阶段 是非阻塞的,但是他要不断地询问,会导致cpu 空转,性能下降
3.多路复用io
高性能的,比较复杂,面试中也比较常用, 这里有个新的章节讲解 https://blog.csdn.net/qq_52252193/article/details/125546614
4.信号驱动IO
5.异步IO
整个过程都是非阻塞的, 用户进程完成异步的调用,把任务交给内核,内核等待数据就绪和处理完数据,再把结果发回给用户, (相当于老板让员工干活, 老板很闲,员工可能累死)
总结比较
边栏推荐
- 游戏公会在去中心化游戏中的未来
- Reasons for MySQL reporting 1040too many connections and Solutions
- Simple two ball loading
- Hardware development notes (9): basic process of hardware development, making a USB to RS232 module (8): create asm1117-3.3v package library and associate principle graphic devices
- Function test process in software testing
- Investment analysis and prospect prediction report of global and Chinese dimethyl sulfoxide industry Ⓦ 2022 ~ 2028
- SSO and JWT good article sorting
- 1553B environment construction
- 不同的测试技术区分
- 10. Page layout, guess you like it
猜你喜欢
Wave animation color five pointed star loader loading JS special effects
Function test process in software testing
香港科技大学李泽湘教授:我错了,为什么工程意识比上最好的大学都重要?
Fiori 应用通过 Adaptation Project 的增强方式分享
8 popular recommended style layout
北斗通信模块 北斗gps模块 北斗通信终端DTU
一款Flutter版的记事本
JS discolored Lego building blocks
Project deployment is not difficult at all!
流量管理技术
随机推荐
Some summary of pyqt5 learning (overview of the general meaning of some signals and methods)
Global and Chinese polypropylene industry prospect analysis and market demand forecast report Ⓝ 2022 ~ 2027
SVG钻石样式代码
软件测试中功能测试流程
1553B环境搭建
Terminal identification technology and management technology
Google Earth Engine(GEE)——全球人类居住区网格数据 1975-1990-2000-2014 (P2016)
Build a vc2010 development environment and create a tutorial of "realizing Tetris game in C language"
Reasons for MySQL reporting 1040too many connections and Solutions
Social distance (cow infection)
Professor Li Zexiang, Hong Kong University of science and technology: I'm wrong. Why is engineering consciousness more important than the best university?
Apache-atlas-2.2.0 independent compilation and deployment
Huawei HMS core joins hands with hypergraph to inject new momentum into 3D GIS
Research Report on China's software outsourcing industry investment strategy and the 14th five year plan Ⓡ 2022 ~ 2028
Asp.netcore利用dynamic简化数据库访问
Yarn restart applications record recovery
1553B environment construction
Analysis report on the development prospect and investment strategy of the global and Chinese laser chip industry Ⓑ 2022 ~ 2027
ROS2 Foxy depthai_ ROS tutorial
游戏公会在去中心化游戏中的未来