← BYTES
Unix IPC·Starter·Ref: 15.1.52

What is a well-known basic limitation of select() regarding how many file descriptors it can watch?

Have a question about this video? Mention reference 15.1.52 when you contact us.

a.select() can watch an unlimited number of file descriptors with no restriction of any kind
b.select() can only be used by the root user
c.select() can only watch exactly one file descriptor
d.select() uses a fixed-size bitmask (FD_SETSIZE, historically 1024) to represent the set of watched file descriptors, imposing a hard ceiling on how many it can monitor at once
select()'s fd_set is a fixed-size bitmask sized by the FD_SETSIZE constant (commonly 1024) -- a hard structural limit on how many file descriptors it can represent at all, one of the key limitations poll() and epoll were designed to remove.

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#BYTES15152#UnixIPC