update threadpool and fix HPCManager getHPCResource