[try Beta version]
Not logged in

 
Many instances run on many cores?

May 19, 2015 at 3:44pm
I have a problem and need some help.e
For example, I have an MFC app for image processing written in C++.
Let's say that this app only run on one core when only one instance is opened.
When I open many instances of this app, does each instance run on each separate core?
May 20, 2015 at 3:30pm
No but you can set affinity to run on a desired core.

Right click the process in the task manager and set it there or run it from cmd:

C:\Windows\System32\cmd.exe /C start /affinity 1 yourprogram.exe
C:\Windows\System32\cmd.exe /C start /affinity 2 yourprogram.exe
.....
Last edited on May 20, 2015 at 3:34pm
May 20, 2015 at 4:35pm
Last edited on May 20, 2015 at 4:40pm
May 21, 2015 at 2:45pm
Thank you!
I have a question.
Let's say I have an image processing application and I need to process an image I.
With only one instance this takes 10s.
With two identical instances running on two cores at the same time. Assuming that each instance process the image I. How long does it takes for each instance to process I in this case?
Does it instance also take 10s to finish?
May 21, 2015 at 7:24pm
Just too stupid question to even bother about. Answers are two same image ONE is with more 1.2+1.2=2.4Ghz so I suggest to work on process optimization and copy same code for second core.
Topic archived. No new replies allowed.