← BYTES
Unix IPC·Starter·Ref: 15.1.42

What does the select() system call do, in simple terms?

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

a.It permanently closes a file descriptor
b.It lets a program hand the kernel a set of file descriptors and block until at least one of them is ready for reading/writing/an exceptional condition, or a timeout elapses
c.It selects which user is allowed to run a program
d.It picks a random file descriptor to read from
select() is one of the original I/O multiplexing calls: give it a set of file descriptors you care about, and it blocks until at least one becomes ready (or your timeout expires), then tells you which ones.

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