FR: Add method to change number of threads in ThreadPool

FR: Add method to change number of threads in ThreadPool