Skip to content

Commit

Permalink
vault backup: 2023-03-18 20:02:17
Browse files Browse the repository at this point in the history
Affected files:
Z-attachments/Pasted image 20230318195613.png
notes/programming/Linux 中 5 种 IO 模型.md
  • Loading branch information
615lyw committed Mar 18, 2023
1 parent 278e998 commit cf70519
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Binary file added Z-attachments/Pasted image 20230318195613.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions notes/programming/Linux 中 5 种 IO 模型.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ select、epoll、poll 三者都是 I/O 多路复用系统调用。[[IO 多路复

用户进程发起系统调用,操作系统立即返回,并不会阻塞用户进程。当数据已准备好且完成从内核空间复制到用户空间后,操作系统会给用户进程发起一个通知。

![[Pasted image 20230318195613.png]]

# 阻塞 I/O VS 非阻塞 I/O

在 I/O 两阶段中,数据从内核空间拷贝到用户空间时会阻塞用户进程的。
Expand Down

0 comments on commit cf70519

Please sign in to comment.