All pastes #2074363 Raw Edit

heat.py

public python v1 · immutable
#2074363 ·published 2011-06-04 00:09 UTC
rendered paste body
import multiprocessingdef heat():	while True:		passif __name__ == '__main__':	pool = multiprocessing.Pool(processes=multiprocessing.cpu_count()+1)	result = pool.apply_async(heat)	print multiprocessing.cpu_count()	pool.close()	pool.join()