Sunday, November 2, 2014

Portable Sleep using select()

Put NULL to the fds lists and set the timeval parameter - this allows the process to sleep for a specific time period.  As select() is implemented in most systems, it become a portable way for sleep.

No comments: