learning-systems-programming-in-rust
learning-systems-programming-in-rust copied to clipboard
10.5 節をリプレースする
節タイトル
select 属のシステムコールによる I/O 多重化
対象コード
- [ ] https://github.com/yurakawa/learn-system-programming-with-go/blob/master/ch10/s5/main.go
補足説明
やります!
『Goなら...』ではmacOS限定の kqueue(2) システムコールを使っていますが、Rustでは著名な mio を使います(OSによってkqueueやepollを使い分けている)。
→ と思ったけどFile操作はできないのかな? 🤔 https://github.com/tokio-rs/mio#non-goals 少し調べてみます。