io-multiplexing
Installation
SKILL.md
I/O Multiplexing for Game Servers
Implement high-performance I/O handling for thousands of concurrent connections.
I/O Model Comparison
| Model | Platform | Connections | Latency |
|---|---|---|---|
| epoll | Linux | 100K+ | Low |
| kqueue | BSD/macOS | 100K+ | Low |
| IOCP | Windows | 100K+ | Low |
| io_uring | Linux 5.1+ | 1M+ | Lowest |
| select | All | ~1000 | Medium |
Linux epoll
#include <sys/epoll.h>