Odi's astoundingly incomplete notes
New entries | CodeJava and its use of epoll
In case you wonder how Java NIO uses epoll under Linux:
- The Selector allocates an epoll file descriptor and two FDs (a pipe) for timeout/wakeup. Failing to close the Selector will leak those.
- It uses epoll as level-triggered interface (no EPOLLET)
- It is important to remove a selected key from the Selector's selectedKeys Set. Only then the next select() call will reset its readyOps.
Add comment