![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux
Glemontree_
热爱技术,热爱开源
展开
-
[Linux] Linux中eventfd的使用
Linux中eventfd的使用eventfd简介eventfd是用来实现多进程或多线程之间的事件通知的,常见的事件通知机制除了eventfd外,还有条件变量和管道等 方式。条件变量必须和互斥锁相结合使用,使用起来较麻烦,并且条件变量不能像eventfd一样为I/O事件驱动。管道可以和I/O复用很好的融合,但是管道比eventfd多用了一个文件描述符,而且 管道内核还得给其管理的缓冲区,eventf原创 2017-09-05 10:00:09 · 502 阅读 · 1 评论 -
[Linux] zsh corrupt
Linux中zsh遇到corrupt bug这几天打开ubuntu,出现zsh: corrupt history file /home/gtp/.zsh_history的错误,网上找到了解决方案,这里记录一下,以防以后遇到了又得花时间在网上搜索解决方案。解决方案如下:mv .zsh_history .zsh_history_badstrings .zsh_history_bad > .zsh_hi原创 2017-09-05 10:00:45 · 331 阅读 · 0 评论