title: How read from multiple pipes in Windows in same thread
body: <p>In my program I have saveral pipes which are connected to stdout and stderr streams of child processes (i.e. in main process I'm reading from this streams). But when there is nothing to read from one of them my program hangs. Is there way to solve this problem not using thread. Also I want all child processes to be killed if there is nothing to read during <code>x</code> msecs.</p>
  
  <p>In unix select() + non_blocking read solves this two problems. But what about windows?</p>