added example of select and epoll