diff --git a/exampleSite/content/post/2024-04-19面试复盘/index.zh-cn.md b/exampleSite/content/post/2024-04-19面试复盘/index.zh-cn.md index 5b3b2c4..294439e 100644 --- a/exampleSite/content/post/2024-04-19面试复盘/index.zh-cn.md +++ b/exampleSite/content/post/2024-04-19面试复盘/index.zh-cn.md @@ -329,6 +329,12 @@ auto_ptr是C++98中引入的第一个智能指针,但是由于他的不安全 +再补充一点:读写事件 + +读事件是如果 读缓冲区 有数据可读,读事件自动就触发了 + +写事件是 **在写之前**,检查 写缓冲区 是否可写,如果可写写事件才会被处罚. 并不是写入之后才会被触发. + ## 13.死锁