improved the custom thread pool to support increase/decrease thread dynamic according the load