updates TaskQueue

(1) TaskQueue::emplace_back implemented
(2) default number of threads = resouces__->max_num_threads()