当前位置:网站首页>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
整个过程都是非阻塞的, 用户进程完成异步的调用,把任务交给内核,内核等待数据就绪和处理完数据,再把结果发回给用户, (相当于老板让员工干活, 老板很闲,员工可能累死)
总结比较
边栏推荐
- 科学创业三问:关于时机、痛点与重要决策
- Spark source code (V) how does dagscheduler taskscheduler cooperate with submitting tasks, and what is the corresponding relationship between application, job, stage, taskset, and task?
- Global and Chinese n-butanol acetic acid market development trend and prospect forecast report Ⓧ 2022 ~ 2028
- 声明一个抽象类Vehicle,它包含私有变量numOfWheels和公共函数Vehicle(int)、Horn()、setNumOfWheels(int)和getNumOfWheels()。子类Mot
- 5. Use of ly tab plug-in of header component
- Flow management technology
- 8 popular recommended style layout
- Detailed explanation of OSPF LSA of routing Foundation
- PG基础篇--逻辑结构管理(触发器)
- Global and Chinese styrene acrylic lotion polymer development trend and prospect scale prediction report Ⓒ 2022 ~ 2028
猜你喜欢
ZABBIX 6.0 source code installation and ha configuration
Build a vc2010 development environment and create a tutorial of "realizing Tetris game in C language"
I spent tens of thousands of dollars to learn and bring goods: I earned 3 yuan in three days, and the transaction depends on the bill
Redis exploration: cache breakdown, cache avalanche, cache penetration
彩色五角星SVG动态网页背景js特效
Content Audit Technology
MySQL statistical bill information (Part 2): data import and query
【大型电商项目开发】性能压测-压力测试基本概念&JMeter-38
香港科技大学李泽湘教授:我错了,为什么工程意识比上最好的大学都重要?
Redis explores cache consistency
随机推荐
Qtdeisgner, pyuic detailed use tutorial interface and function logic separation (nanny teaching)
In the next stage of digital transformation, digital twin manufacturer Youyi technology announced that it had completed a financing of more than 300 million yuan
啟動solr報錯The stack size specified is too small,Specify at least 328k
Apache-Atlas-2.2.0 独立编译部署
During Oracle CDC data transmission, the CLOB type field will lose its value during update. There is a value before update, but
Analysis report on the development pattern of China's smart emergency industry and the 14th five year plan Ⓠ 2022 ~ 2028
spark源码(五)DAGScheduler TaskScheduler如何配合提交任务,application、job、stage、taskset、task对应关系是什么?
leetcode 322. Coin change (medium)
Introduction to topological sorting
SSO and JWT good article sorting
leetcode 322. Coin Change 零钱兑换(中等)
不同的测试技术区分
单工,半双工,全双工区别以及TDD和FDD区别
北斗通信模块 北斗gps模块 北斗通信终端DTU
Asp.netcore利用dynamic简化数据库访问
硬件开发笔记(九): 硬件开发基本流程,制作一个USB转RS232的模块(八):创建asm1117-3.3V封装库并关联原理图元器件
Idea of [developing killer]
Report on the current situation and development trend of bidirectional polypropylene composite film industry in the world and China Ⓟ 2022 ~ 2028
Mysql间隙锁
1553B环境搭建