当前位置:网站首页>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
边栏推荐
- Wikipedia User Guide
- Stmarl: a spatio temporal multi agentreinforcement learning approach for cooperative traffic
- Leetcode question brushing 04 string
- leetcode 142. Circular linked list II
- Unitywebrequest asynchronous Download
- MySQL异常:com.mysql.jdbc.PacketTooBigException: Packet for query is too large(4223215 > 4194304)
- Pytorch's leafnode understanding
- Docker install MySQL
- Thread code learning notes
- Leetcode-14- longest common prefix (simple)
猜你喜欢

Rasa dialogue robot helpdesk (III)

軟件測試的幾種分類,一看就明了
![[Stanford Jiwang cs144 project] lab1: streamreassembler](/img/7b/fad18b68a6ee30d1dec4dad6273b98.png)
[Stanford Jiwang cs144 project] lab1: streamreassembler

A problem discovery and attempted solution to the strange stop of server script

Unity calls alertdialog

The tle4253gs is a monolithic integrated low dropout tracking regulator in a small pg-dso-8 package.

Common skills of quantitative investment - index part 2: detailed explanation of BOL (Bollinger line) index, its code implementation and drawing

Leetcode find duplicates

Leetcode question brushing 04 string

Alexnet implements image classification of caltech101 dataset (pytorch Implementation)
随机推荐
MySQL transaction
Addition and modification of JPA
Most elements leetcode
Pytorch's leafnode understanding
Minimum spanning tree problem
HashSet underlying source code
Leetcode-15- sum of three numbers (medium)
Application advantages of 5g industrial gateway in coal industry
Plusieurs catégories de tests logiciels sont claires à première vue
软件测试的几种分类,一看就明了
Introduction to convolutional neural network
在国企做软件测试工程师是一种什么样的体验:每天过的像打仗一样
Golang context (context summary)
关于#数据库#的问题,如何解决?
Happy string
Simple operation of MySQL database
4K sea bottom and water surface fabrication method and ocean bump displacement texture Download
Go simple read database
Golang learning essay
spiral matrix visit Search a 2D Matrix