How to signal select() to return immediately? How to signal select() to return immediately? multithreading multithreading