ThreadPool implemented with task stack.