D
D
Dmitry Prilepsky2021-06-11 00:36:28
Multithreading
Dmitry Prilepsky, 2021-06-11 00:36:28

How to find out the maximum number of processes that can be run on a PC?

I am developing a program for translating files using the Google translate API. It should take all the files from the folder of one game and Russify. There are a lot of files, so the program works for a long time. I want to try to scatter all the files among the processes, but I'm afraid that if you run this program on weak PCs, it will simply put the computer down. Is there any way to make "smart" multiprocessing, so that the program itself decides how many processes to run depending on the hardware?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Kachan, 2021-06-12
@HartX

The number of processors/cores can be found like this https://stackoverflow.com/questions/1542213/how-to...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question