In general, the popular packages compiled in Linux system should be highly optimized to use multi-threads, but the subtle issues usually occur for compilation under MacOS. Here is my exploration about how to modify the make file to facilitae the compilation such that XGBoost in MacOS can utilize multi-threads. Please check Allow for the Multi-threads of XGBoost within Conda environments under MacOS and Fail to install xgboost R package from source inside conda environment under MacOS (big sur).