title: Thread safe queue in Java
body: <p>I want to implement a queue, that is hit by multiple threads.</p>
  
  <p>This is stack is in a singleton class.</p>
  
  <p>Now, a simple solution is to synchronize this? I assume it would need this as standard?
  However, I want to prioritize writing to it.</p>
  
  <p>So, write is high priority, read is low priority.</p>
  
  <p>Is this possible?<br>
  Ideally writing by multiple threads without synchronizing would be great, if possible.</p>