threading
from concurrent.futures import ThreadPoolExecutor
with ThreadPoolExecutor(max_workers=processes_num) as thread:
thread.submit(func, x,y,z)
threading.Thread(target=action,args=(xxx,)).start()
from concurrent.futures import ThreadPoolExecutor
with ThreadPoolExecutor(max_workers=processes_num) as thread:
thread.submit(func, x,y,z)
threading.Thread(target=action,args=(xxx,)).start()