← BYTES
Unix IPC·Starter·Ref: 15.1.60
What does the term 'event loop' generally mean for a server built around select/poll/epoll?
Have a question about this video? Mention reference 15.1.60 when you contact us.
a.A loop that counts how many times the server has been restarted
b.A loop that runs exactly once when the program starts and never repeats
c.The central control-flow pattern where a program repeatedly waits for readiness/events across its watched file descriptors, then dispatches whatever handler logic is appropriate for each event that occurred, before going back to waiting again
d.A hardware component inside the network interface card
An event loop is the repeating 'wait for something to happen, handle whatever happened, go back to waiting' structure that select/poll/epoll-based servers are built around -- the single thread spends its time blocked in the waiting call, then briefly handles whichever descriptors became ready, then loops back to waiting again.
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#BYTES15160#UnixIPC