Answer the question
In order to leave comments, you need to log in
Multiprocessing or multithreading?
I have a program written in Python + Selenium. It creates many windows, what is better to choose for the program to work, so that each window and its processing take place in separate processes or that they be in separate threads?
In general, there are no complex calculations in the program. The sites write that a lot of processor for complex calculations, and multithreading for a more economical use of hardware.
Answer the question
In order to leave comments, you need to log in
Processes should be taken into account that browsers are heavy software, so the maximum efficiency will be with 1-2 python processes per real processor core. In addition, there is an option when new addresses are opened not in a new instance of Selenium, but in the current one, in a new tab.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question