for cpu in 1 2 ; do ( while true; do true; done ) & done
如果你想同时模拟IO充电,试试这个:
for cpu in 1 2 ; do ( while true; do find / -type f -exec cp {} /dev/null \; ; done ) & done
for for cpu in 1 2 for 2 core,for cpu in 1 2 3 4 for 4 cores;)