linuxwindowsnettyepolliocp

difference between netty running on Linux and Windows


Netty's I/o multiplexing depends on epoll on a Linux system, but is the performance the same when running netty on a Windows operating system?

Windows without epoll,how does netty work?iocp?

Thank you for your answer.


Solution

  • Think of it this way: By default, Netty uses Java NIO which is independent of the OS you're running on. However, additional performance and some functionality can be gained by leveraging native support ( e.g. epoll for Linux or kqueue for macos ). So far, there's no native enhancements in Netty for Windows, but the base java NIO still serves well, and NIO does not depend on epoll.