multiple threads doing poll() or select() on a single socket or pipe multiple threads doing poll() or select() on a single socket or pipe multithreading multithreading