title: Producer/2consumers implementation with multithreading
body: <p>I want to implement "producer/two consumers" functionality.</p>
  
  <p><strong>Producer:</strong> scans directories recursively and adds directory information to some storage (I guess <code>Queue&lt;&gt;</code>)</p>
  
  <p><strong>Consumer 1:</strong> retrieves data about directory and writes it to XML-file.</p>
  
  <p><strong>Consumer 2:</strong> retrieves data about directory and add it to TreeNode.</p>
  
  <p>So both (1 and 2) consumers have to work with a same data. Because if one of consumers call <code>Dequeue()</code>, the other one will miss this data.</p>
  
  <p>The only idea I have - is to make 2 different <code>Queue&lt;&gt;</code> and Producer will fill them both with a same data. Then each consumer will work with different <code>Queue</code> object.</p>
  
  <p>I hope you'll advise something more attractive</p>