MACOS
Get number of cores
#sysctl -n hw.ncpu
Stop/Start service
#launchctl stop < servicename > #launchctl start < servicename >
Update
softwareupdate --all --install --force
#sysctl -n hw.ncpu
#launchctl stop < servicename > #launchctl start < servicename >
softwareupdate --all --install --force