+ 1

How did you develop multi-threaded applications in Python?

I am currently fulfilling an order, the point is that on a certain site 30 accounts must perform various actions. So far, everything works for me on one account. How did you work with multisession?

10th Jan 2021, 1:08 PM
Makar Mikhalchenko
Makar Mikhalchenko - avatar
2 odpowiedzi
+ 2
Run your server scripts with threading. Every time someone connects, spin off a thread and let that process handle that client while your server waits for another to do something.
10th Jan 2021, 1:10 PM
Slick
Slick - avatar
0
Use threading module. You can import it this way. import threading Use it this way: variable = threading.Thread(target=function_you_want_to_execute_in_a_new_thread, args=() ) #Args ---> Put here your function args.
18th Jan 2021, 2:50 AM
Hacker-KR4636
Hacker-KR4636 - avatar