{print $8}\ ).read()) printCPU Usage: str(output) \tCurrent Thread Number: str(len(threadList)) if output < string.atoi(sys.argv[1]):#增加线程 for i in range(0,器负string.atoi(sys.argv[4])): thread = ControlThread() thread.start() threadList.append(thread) print" " if output > string.atoi(sys.argv[2]):#减少线程 for i in range(0,string.atoi(sys.argv[4])): thread = threadList.pop() thread.stop() print"-----" 1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.21.22.23.24.25.26.27.28.29.30.31.32.33.34.35.36.37.38.39.40.41.42.43.44.