M
Martin Gerner
Hi,
I am currently working on a quite computationally heavy program. As it
would be possible for me to do computational tasks in parallell, I would
like to be able to use several cores when the program is being run on
computers that have such processors.
Is there any way of getting information from the system about how many
cores the current machine is using? I don't want to spawn more threads than
necessary, as the memory usage would go up too much.
I am currently working on a quite computationally heavy program. As it
would be possible for me to do computational tasks in parallell, I would
like to be able to use several cores when the program is being run on
computers that have such processors.
Is there any way of getting information from the system about how many
cores the current machine is using? I don't want to spawn more threads than
necessary, as the memory usage would go up too much.