Answer the question
In order to leave comments, you need to log in
python multithreading?
I have a function that sends an Http request. I need to call this function several times with different arguments so that all these three threads work at the same time. How can this be implemented?
tried it with _thread as well - doesn't work
try:
Thread(target=f, args=(list1,)).start()
Thread(target=f, args=(list2,)).start()
except:
print("Error: unable to start thread")
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question