当前位置:网站首页>Synchronous / asynchronous, blocking / non blocking and IO
Synchronous / asynchronous, blocking / non blocking and IO
2022-07-29 07:18:00 【HTmonster】
Synchronous and asynchronous
- The key : Can you Work at the same time
Blocking and non blocking
- The key : Can you dynamic
A combination of two
Synchronous blocking
- Possible performance : A thread is waiting
Synchronous nonblocking
- Possible performance : A thread is running normally
Asynchronous blocking
- Possible performance : Multiple threads are waiting
Asynchronous non-blocking
- Possible performance : Multiple threads are running normally
I/O operation
- The process 1: Wait for the data
- The process 2: Reading and writing 、 Copy the data
Blocking IO And non blocking IO
Blocking IO: User processes participate in the above two processes , Blocked in IO Process
Non blocking IO: User processes do not need to participate in the above two processes , When it's done , The kernel notifies the user thread
asynchronous IO And signal driven IO
- Signal driven IO: When descriptor data is ready , By producing SIGIO The signal initiates a call to the application signal correlation function , Applications can be accessed through recvfrom Copy data ( You also need to copy it yourself )
- asynchronous IO: The application program can return immediately after triggering the system call , The kernel sends a signal to the application after the data copy is completed , Trigger application logic .( You don't need to copy it yourself )
Model comparison
边栏推荐
- 女研究生做“思维导图”与男友吵架!网友:吵架届的“内卷之王”....
- Why does ETL often become ELT or even let?
- 怎么会不喜欢呢,CICD中轻松发送邮件
- 2022-07-28: what is the output of the following go language code? A:AA; B:AB; C:BA; D:BB。 package main import ( “fmt“ ) func main() { f
- CVPR2021| 基于自监督学习的多视图立体匹配 (CVPR2021)
- buck电路boot电容短路和断路实测波形
- Win11vmware turns on the virtual machine and restarts on the blue screen and the solution that cannot be started
- Operator3 - design an operator
- 做开发4年13K,想转行自动化测试,薪资还能涨吗···
- 路由中的生命周期钩子 - activated与deactivated
猜你喜欢
After 4 years of development and 13K, if you want to change to automated testing, can your salary still rise···
作业7.28 文件IO与标准IO
建木持续集成平台v2.5.2发布
buck电路boot电容短路和断路实测波形
VMware16创建虚拟机:Win11无法安装
聊天机器人有何用处?有何类型?看完这些就明白了!
解决CSDN因版权不明而无法发布博客的问题
buck电路boot和ph引脚实测
MVFuseNet:Improving End-to-End Object Detection and Motion Forecasting through Multi-View Fusion of
H3C_ Using setting default static routing priority to realize the active and standby function of export dual lines
随机推荐
Guess the number / / generate a random number for the first time
如何使用gs_expansion扩展节点
0 9 布隆过滤器(Bloom Filter)
Kubernetes (V) -- deploy kubernetes dashboard
WPF simple login page completion case
MySQL 有这一篇就够(呕心狂敲37k字,只为博君一点赞!!!)
win11系统错误:由于找不到 iertutil.dll,无法继续执行代码。重新安装程序可能会解决此问题
MySQL advanced (Advanced) SQL statement (I)
tp6 使用 ProtoBuf
WPF interface layout must know basis
JS chicken laying eggs and egg laying chickens. Who appeared earlier, object or function? Is function an instance of function?
时钟树综合(一)
ERROR 1045 (28000) Access denied for user ‘root‘@‘localhost‘解决方法
使用VsCode配置MySQL实现连接、查询、等功能
Redis Basics
Hj37 statistics of the total number of rabbits per month Fibonacci series
数组的子集不能累加出的最小正数
SSH password free login - two virtual machines establish password free channel two-way trust
NPM install reports an error NPM err could not resolve dependency NPM err peer
Cvpr2021 | multi view stereo matching based on self supervised learning (cvpr2021)