update threadpool: remove unnecessary sleep, decrease task wait time