spacepaste

  1.  
  2. from concurrent.futures.thread import ThreadPoolExecutor
  3. executor = ThreadPoolExecutor()
  4. def f(n):
  5. for i in range(n):
  6. executor.submit(lambda: None).result()
  7. import sys
  8. f(int(sys.argv[1]))
  9.