← BYTES
Unix IPC·Starter·Ref: 15.1.45
What does it mean for a file descriptor to be 'ready' in the context of select/poll/epoll?
Have a question about this video? Mention reference 15.1.45 when you contact us.
a.An operation (like reading or writing) could be performed on it right now without blocking -- e.g. there is data available to read, or room in the buffer to write
b.The file descriptor has been permanently closed
c.The file descriptor has just been created
d.The operating system has deleted that file descriptor's underlying file
Readiness means 'this operation wouldn't have to wait' -- a readable fd has data waiting, a writable fd has buffer space available. That's exactly the information select/poll/epoll exist to report, without the caller having to just try the operation and see.
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#BYTES15145#UnixIPC