ParentFull threadAutre·A priority queue [http://en.wikipedia.org/wiki/Priority_queue] seems to be the way to go with this.View on HN