3 ms·The portable way is: getconf _NPROCESSORS_ONLNby swills 6y agoThe portable way is: getconf _NPROCESSORS_ONLNslrz 6y agoThis is asking for a different thing, though. % taskset 1 nproc 1 % taskset 1 getconf _NPROCESSORS_ONLN 8