prepare to constructor of threadpool
init