title: Zookeeper Queue with Lock
body: <p>As we see in Java Linked Blocking Queue, take() method takes lock/gaurds the tail node before dequeueing from queue. So no 2 threads will take the same node from the tail. In case of zookeeper, all the process watching the root node of queue will get notified and all of them can grab the same set of nodes and start processing the same nodes.</p>
  
  <p>So how can I call this a distributed queue then. I am talking of the producer consumer reciepe of Zookeeper. <a href="http://zookeeper.apache.org/doc/r3.4.1/zookeeperTutorial.html#sc_producerConsumerQueues" rel="nofollow">http://zookeeper.apache.org/doc/r3.4.1/zookeeperTutorial.html#sc_producerConsumerQueues</a></p>