Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Using Shell Command¶
sysctl hw.physicalcpu hw.logicalcpuUsing Python¶
import os
os.cpu_count()16import multiprocessing as mp
mp.cpu_count()16