title: How to iterate on concurrentLinkedQueue by multiple threads?
body: <p>In my application data producing speed (which is stored in in concurrentLinkedQueue) is greater than i can consume with single thread. </p>
  
  <p>I have decided to start with creating 4 threads to consume the data, to prevent my application from "out of memory exception". </p>
  
  <p>Questions :</p>
  
  <ul>
  <li>Any other better design for the above problem with an example ?</li>
  <li>Can we iterate over concurrentLinkedQueue with multiple threads and delete the elements while iterating ?</li>
  </ul>
  
  <blockquote>
    <p>Memory consistency effects: As with other concurrent collections,
    actions in a thread prior to placing an object into a
    ConcurrentLinkedQueue happen-before actions subsequent to the access
    or removal of that element from the ConcurrentLinkedQueue in another
    thread.</p>
  </blockquote>