Public feed #2074375

heat.py

public python v1 · immutable
Raw Edit
·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()