The mechanism of map-reduce is base on batch tasks to be executed at the same time,so it uses queue as its data structure,and the mechanism of the queue complys with FIFO and it has a feature of sequence of time. That is to say,it's the same as the model of the producer-consumer.Queue and its sub-queues will compose a tree data structure and its allocated resources will be shared with the the queues in the tree.