int select(int nfds, fd_set *readfs, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout);nfds: Number of FDsreadfds: is the Bitmask of FDs we want to readwritefds: is the Bitmask of FDs we want to writeexceptfds: is the Bitmask of FDs for except conditionals of poll()timeout: time for timeout- Returns the number of file descriptors returned in the 3 descriptor sets or -1 on error
- Updates readfs, writefs, exceptfs to only tick on files that are ready