All pastes #2074375 Raw Edit

heat.py

public python v1 · immutable
#2074375 ·published 2011-06-04 00:38 UTC
rendered paste body
import multiprocessing, osdef heat():	print "PID: ", os.getpid()	while True:		passif __name__ == '__main__':	pool = multiprocessing.Pool()	for i in range( multiprocessing.cpu_count() ):		result = pool.apply_async(heat)	#result.wait()	print multiprocessing.cpu_count()	pool.close()	pool.join()