当前位置:网站首页>Differences among bio, NiO and AIO
Differences among bio, NiO and AIO
2022-06-13 01:21:00 【Torlesse】
BIO、NIO、AIO The difference between the three
BIO、NIO、AIO The difference between
In order to ensure the stability and security of the operating system , The address space of a process is divided into user space (User space) And kernel space (Kernel space)
When the application initiates I/O After calling , There are two steps :
- Kernel wait I/O The device is ready for data
- The kernel copies data from kernel space to user space .
common 3 in IO Model
BIO It's synchronous blocking IO Model
BIO yes Java Tradition io Model , A thread triggers io You must wait for this after the operation io Operation execution completed , I can't do other work during this period .
NIO It belongs to synchronous non blocking IO Model
NIO: A thread triggers io It can return immediately after the operation , But it needs constant rotation training to get execution results .
AIO Asynchronous non blocking IO Model
AIO: A thread triggers io After the operation , It can immediately return to do other work , The kernel system will io The thread will be notified when the operation is completed .
The following articles are recommended :
JAVA The essence of knowledge .BIO、NIO and AIO The difference between
With Java Let's talk from the perspective of BIO、NIO And AIO The difference between
边栏推荐
- 【斯坦福计网CS144项目】Lab1: StreamReassembler
- np.concatenate中axis的理解
- 生态聚合NFT来袭,Metaverse Ape引领Web 3.0元宇宙新范式革命
- 五篇经典好文,值得一看(2)
- Continue when the condition is not asked, execute the parameter you compare
- Key point detection data preparation and model design based on u-net Network -- detection model of four key points of industrial components
- ES6 deconstruction assignment
- Minimum spanning tree problem
- Leetcode 01 array
- [Stanford Jiwang cs144 project] lab1: streamreassembler
猜你喜欢

The storage structure of a tree can adopt the parent representation, that is, the parent pointer array representation. Try to give the corresponding class definition. Each tree node contains two membe

Set and array conversion, list, array

Liu Hui and introduction to nine chapter arithmetic and island arithmetic

Leetcode-11- container with the most water (medium)

Several categories of software testing are clear at a glance

Key point detection data preparation and model design based on u-net Network -- detection model of four key points of industrial components

Leetcode question brushing 04 string

论文笔记:STMARL: A Spatio-Temporal Multi-AgentReinforcement Learning Approach for Cooperative Traffic

spiral matrix visit Search a 2D Matrix

Leetcode 05 tree
随机推荐
Et5.0 value type generation
Five classic articles worth reading
使用Pygame创建一个简单游戏界面
The tle4253gs is a monolithic integrated low dropout tracking regulator in a small pg-dso-8 package.
[latex] insérer une image
About_ int128
Wikipedia API User Guide
Redis usage optimization summary learning
数学知识整理:极值&最值,驻点,拉格朗日乘子
FLIP动画实现思路
Pytorch's leafnode understanding
Rotating camera
Liu Hui and introduction to nine chapter arithmetic and island arithmetic
DFS and BFS notes (II): depth first search (implemented in C language)
leetcode. 349. intersection of two arrays
Study notes on the introduction paper of face recognition deep facial expression recognition: a survey
Rasa对话机器人之HelpDesk (三)
Minimum spanning tree problem
Addition and modification of JPA
论文笔记:STMARL: A Spatio-Temporal Multi-AgentReinforcement Learning Approach for Cooperative Traffic