a guest Aug 19th, 2019 130 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- from concurrent.futures import ThreadPoolExecutor
- import subprocess
- def run_process(x):
- program = "C:\\Windows\\notepad.exe"
- p = subprocess.Popen([program])
- executor = ThreadPoolExecutor(max_workers=4)
- a = executor.submit(run_process)
RAW Paste Data