add ThreadPool relative code, support to download in threadpool