Why doesn't this works? Don't get any error.
I though I had used this snippet of code a year ago and though it worked back then but maybe not.. Using python 2.7
from multiprocessing.pool import ThreadPool
def printer(arg):
print arg
nThreads = 10
pool = ThreadPool(processes=nThreads)
threads = [pool.apply_async(printer, args=(x)) for x in range(100)]
pool.close()
pool.join()