Re:“Node.js is one of the worst things to happen to the soft...
by 15155 on Tuesday August 23, 2016 @04:17PM
(#12347191)
> requiring you to waste cpu cycles in a polling loop checking if an fd is "ready",
epoll in edge-triggered mode does not require this loop to exist in userland. In edge-triggered epoll (or the similar kqueue construct), your work thread(s) will be asleep until the kernel chooses to wake one up.
epoll in edge-triggered mode does not require this loop to exist in userland. In edge-triggered epoll (or the similar kqueue construct), your work thread(s) will be asleep until the kernel chooses to wake one up.