Custom Search

Saturday, December 4, 2010

python increase cpu utilization

python increase cpu utilization

import threading

def loop():
while True:
pass

for i in range(20):
threading.Thread(name='loop', target=loop()).start()

No comments:

Post a Comment