how to control the multi_processor number
If you want to control the bash script’s multi process number.you can do like this The really scene is to add user or delete user in your ubuntu os or ping the net in your computer. #! /bin/bash read - p "please input your prefix:" prefix for i in { 1 . . 100 } do { sudo userdel $prefix $i if [ $? -eq 0 ] ; then echo "user $prefix $i is ok" else echo "user $prefix $i failed" fi } & done wait echo "all finished....." if you type “bash multi.sh” in your terminal and hit the Enter key,you will find the number isn’t appear in sequence,but in a random order. But unfortunately, if your computer is