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

总结比较

边栏推荐
- PG基础篇--逻辑结构管理(触发器)
- 科学创业三问:关于时机、痛点与重要决策
- 【大型电商项目开发】性能压测-压力测试基本概念&JMeter-38
- 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?
- 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
- MySQL gap lock
- 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
- Beidou communication module Beidou GPS module Beidou communication terminal DTU
- A Fletter version of Notepad
猜你喜欢

Google Earth engine (GEE) - Global Human Settlements grid data 1975-1990-2000-2014 (p2016)

Redis explores cache consistency

Jenkins+webhooks-多分支参数化构建-

不同的测试技术区分

spark源码(五)DAGScheduler TaskScheduler如何配合提交任务,application、job、stage、taskset、task对应关系是什么?

La taille de la pile spécifiée est petite, spécifiée à la sortie 328k

游戏公会在去中心化游戏中的未来

Feign & Eureka & Zuul & Hystrix 流程

启动solr报错The stack size specified is too small,Specify at least 328k

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?
随机推荐
Cs5268 advantages replace ag9321mcq typec multi in one docking station scheme
2.15 summary
Look at the sky at dawn and the clouds at dusk, and enjoy the beautiful pictures
Apache-Atlas-2.2.0 独立编译部署
How much money do novices prepare to play futures? Is agricultural products OK?
硬件开发笔记(九): 硬件开发基本流程,制作一个USB转RS232的模块(八):创建asm1117-3.3V封装库并关联原理图元器件
【牛客刷题-SQL大厂面试真题】NO2.用户增长场景(某度信息流)
MySQL gap lock
Investment analysis and prospect prediction report of global and Chinese p-nitrotoluene industry Ⓙ 2022 ~ 2027
Vs code set code auto save
The popular major I chose became "Tiankeng" four years later
Have you ever encountered the problem that flynk monitors the PostgreSQL database and checkpoints cannot be used
二传感器尺寸「建议收藏」
String input function
Beidou communication module Beidou GPS module Beidou communication terminal DTU
Idea of [developing killer]
啟動solr報錯The stack size specified is too small,Specify at least 328k
不同的测试技术区分
Professor Li Zexiang, Hong Kong University of science and technology: I'm wrong. Why is engineering consciousness more important than the best university?
Introduction to reverse debugging PE structure input table output table 05/07