8 def grab_cores(threads=1, count=int(1e9)):
10 for i in range(threads):
11 thread = threading.Thread(target=spam.busy, args=(count,))
12 _threads.append(thread)
14 for thread in _threads:
18 if __name__ == '__main__':
21 grab_cores(threads=int(sys.argv[1]))