title: How can Unix pipes be used between main process and thread?
body: <p>I am trying to channel data via pipes whenever a signal arrives from a thread to the main process.</p>
  <p>Is this possible?<br />
  How can this be done?</p>
  <hr />
  <h3>The problem:</h3>
  <ol>
  <li>A child thread reads data and puts it into a queue.</li>
  <li>Main application does its own stuff, however, when data is available on the queue, it should be notified by the thread, and start processing the data (main thread has access to the queue).</li>
  </ol>
  <p>How should this scenario be implemented?</p>