当前位置:网站首页>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
整个过程都是非阻塞的, 用户进程完成异步的调用,把任务交给内核,内核等待数据就绪和处理完数据,再把结果发回给用户, (相当于老板让员工干活, 老板很闲,员工可能累死)

总结比较

边栏推荐
- Wang Xing's infinite game ushers in the "ultimate" battle
- Camp division of common PLC programming software
- The stack size specified is too small, specify at least 328k
- [development of large e-commerce projects] performance pressure test - basic concept of pressure test & jmeter-38
- Nexus builds NPM dependent private database
- Google Earth engine (GEE) - Global Human Settlements grid data 1975-1990-2000-2014 (p2016)
- Vs code set code auto save
- JS变色的乐高积木
- Fiori 应用通过 Adaptation Project 的增强方式分享
- ROS2 Foxy depthai_ ROS tutorial
猜你喜欢

Qtdeisgner, pyuic detailed use tutorial interface and function logic separation (nanny teaching)
Example code of second kill based on MySQL optimistic lock

【牛客刷题-SQL大厂面试真题】NO2.用户增长场景(某度信息流)

Cs5268 advantages replace ag9321mcq typec multi in one docking station scheme
![Idea of [developing killer]](/img/74/f4a18afd2b86373996e4ca62b50f88.png)
Idea of [developing killer]

MySQL 66 questions, 20000 words + 50 pictures in detail! Necessary for review

Wang Xing's infinite game ushers in the "ultimate" battle
Reasons for MySQL reporting 1040too many connections and Solutions

mysql统计账单信息(下):数据导入及查询

La taille de la pile spécifiée est petite, spécifiée à la sortie 328k
随机推荐
spark源码阅读总纲
leetcode 322. Coin Change 零钱兑换(中等)
华为HMS Core携手超图为三维GIS注入新动能
【牛客刷题-SQL大厂面试真题】NO2.用户增长场景(某度信息流)
[Niu Ke's questions -sql big factory interview real questions] no2 User growth scenario (a certain degree of information flow)
[development of large e-commerce projects] performance pressure test - basic concept of pressure test & jmeter-38
Global and Chinese n-butanol acetic acid market development trend and prospect forecast report Ⓧ 2022 ~ 2028
Detailed explanation of OSPF LSA of routing Foundation
10. Page layout, guess you like it
minimum spanning tree
What is the future development direction of people with ordinary education, appearance and family background? The career planning after 00 has been made clear
简单的两个圆球loading加载
1. Sum of two numbers: given an integer array num and an integer target value, please find the two integers whose sum is the target value target in the array and return their array subscripts
Update a piece of data from the database. Will CDC get two pieces of data with OP fields D and C at the same time? I remember before, only OP was U
Beidou communication module Beidou GPS module Beidou communication terminal DTU
MySQL Replication中的并行复制示例详解
Redis explores cache consistency
Apache-atlas-2.2.0 independent compilation and deployment
Idea of [developing killer]
How much money do novices prepare to play futures? Is agricultural products OK?