Define of priority queue and thread pool.
Some functions of priority queue have been implemented yet.