← BYTES
Unix IPC·Starter·Ref: 15.1.53
What does epoll_wait() basically do?
Have a question about this video? Mention reference 15.1.53 when you contact us.
epoll_wait() --> blocks... --> "fd7 is now ready!" --> returns
a.It blocks (optionally with a timeout) until one or more of the file descriptors previously registered with this epoll instance become ready, then returns just those ready ones
b.It permanently shuts down all open file descriptors
c.It creates a brand-new network connection
d.It compiles a C program
epoll_wait() is the actual waiting call in the epoll API -- after registering interest in various file descriptors via epoll_ctl(), epoll_wait() blocks until some of them become ready, and efficiently reports back only the ones that actually are, rather than requiring a full rescan of everything registered.
Find this on YouTube & Instagram
Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:
#BYTES#BYTES15153#UnixIPC