摘要: 说明 一直听说epoll的饥饿场景,但是从未在实际环境中面对过,那么能不能模拟出来呢?实际的情况是怎样呢? 模拟步骤 基于epoll写一个简单的tcp echo server,将每次read返回的字节数打印出来 模拟一个客户端大量写入 测试其他客户端能否正常返回 Server代码 #include 阅读全文
posted @ 2024-06-12 19:47 by_mzy 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 使用要点 边缘模式(ET)与水平模式(LT)区别 下面内容来自linux man page The epoll event distribution interface is able to behave both as edge-triggered (ET) and as level-trigge 阅读全文
posted @ 2024-06-12 13:11 by_mzy 阅读(265) 评论(0) 推荐(0) 编辑