finish ThreadPool and fix some mistake