Что ещё кроме epoll может быть использовано в Linux ?
Программный интерфейс epoll есть только в Linux. В некоторых других системах есть подобные механизмы, например, в FreeBSD есть kqueue, а в Solaris — /dev/poll
а кроме epoll прямо в linux бывает select и просто poll ?
Цитата из man inotify:
Inotify file descriptors can be monitored using select(2), poll(2), and epoll(7). When an event is available, the file descriptor indicates as readable.
Indaril_Shpritz★ ()автор топика
Последнее исправление: Indaril_Shpritz
(всего
исправлений: 1)
Mono использует epoll если он доступен, как более эффективную систему. Если нет, то использует старые select/poll
This will use select/poll by default but will use linux epoll, available at least in all 2.6 kernels, if present. epoll performance is way better than the one we got with just select/poll and scales
MONO_DISABLE_AIO
If set, tells mono NOT to attempt using native asynchronous I/O
services. In that case, a default select/poll implementation is
used. Currently only epoll() is supported.