Make the background thread into thread pool.