title: Thread work balance in a Producer-Consumer implementation
body: <p>I have a basic implementation of producer-consumer as follows:</p>
  
  <p>&nbsp; </p>
  
  <p><img src="https://i.stack.imgur.com/kzXe0.png" alt="enter image description here"></p>
  
  <p>My question is how to make number of threads: x ~ y to increase application performance and loading balance? 
  Anyone have a keyword or hint? Thanks you in advance!</p>