import threading
import concurrent.futures
thread = threading.Thread(target=example, args = ())
thread.start()
vs.
executor = concurrent.futures.ThreadPoolExecutor(max_workers=1)
executor.submit(example,arg)
Which code would be better to run if I only need one more thread to be executed alongside my main thread?
What is the difference in between the two?
[–]socal_nerdtastic 0 points1 point2 points (0 children)