Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: How does a multi-core coded app allocate?

08 Feb 2016   #1
golem

Windows 7 Ultimate 64
 
 
How does a multi-core coded app allocate?

Curious as to how an app that has been coded for multi-core use spreads the load? Would it by default allocate the load evenly across cores or will it simply spill over to additional cores as each core becomes saturated? I'm assuming both these scenarios are an option and basically dependent on the coders chosen implementation.


My System SpecsSystem Spec
.
09 Feb 2016   #2
OvenMaster

Win7 Pro 32bit; Zorin OS 9 Core (in VM)
 
 

I've got both sorts of programs on my PC.
One of my video rendering programs allocates Core 0 most of the work, while Cores 1, 2 and 3, get just a bit of it.
Another video program spreads the load out evenly to all cores. Same with Folding@Home.
My System SpecsSystem Spec
09 Feb 2016   #3
golem

Windows 7 Ultimate 64
 
 

Thanks OvenMaster!

Much appreciate the verification.

Of the multi-core programs I have -- One stresses a single core to 85%-90% while the other three cores dance below 13%. My other multi-core apps unfortunately are always using 100% of all four cores when in use so I had no definitive answer. It's that one-core stresser that bothers me because I occasionally experience performance problems (data lag) with that app and am having difficulty determining if it's CPU related or due to other factors (i.e. data provider, network, etc.).
My System SpecsSystem Spec
.

09 Feb 2016   #4
LMiller7

Windows 7 Pro 64 bit
 
 

An application optimized to run on a multicore system is one that has threads designed to run simultaneously. This is difficult to do and even more difficult to do well. Many applications have multiple threads but this is for reasons other than performance and they do not really take advantage of multiple cores.

Thread scheduling with multiple processors (cores) is very complex. It is threads that are scheduled and this is done without regard to the processes they belong to. This is managed by the system with the goal of maximizing overall system performance. There is limited provision for applications to influence scheduling but most simply leave it to the system. This usually works best.

When a thread starts it is assigned an "Ideal processor" which it will be assigned to whenever possible. For some quite technical reasons that I do not fully understand this tends to optimize performance. Of course if that processor is busy when the threads turn comes up it will be assigned another. There are complex rules that govern all this.

The goal is optimum performance. Spreading of the workload among cores is not a priority and is only incidental when it happens.

It is possible to set affinity of a process to one or more cores and this can be useful. This limits the process to using only the selected cores. There is no provision for reserving cores for any purpose. Usually it is best to leave all this to the system.

It is very possible for an application to have performance issues and at the same time have cores that are largely inactive. Usually it is just the application cannot efficiently use more cores then it currently is. The scheduler could spread the work around and this might look better in Task Manager but performance would be worse.
My System SpecsSystem Spec
09 Feb 2016   #5
golem

Windows 7 Ultimate 64
 
 

Thanks a bunch for the detailed insight LMiller7!

I almost decided a few months back to upgrade to an i7 6700k. Based on your post and the fact the app in question doesn't seem to ever push the one core past 90% (if my monitoring tools are to be believed) I'd probably not notice any issue alleviation anyhow. Thankfully these hiccups are few and relatively brief as >95% of the time the assigned core is only running at 45%-60%.
My System SpecsSystem Spec
Reply

 How does a multi-core coded app allocate?




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Multi core CPUs
Hello, Nowadays most of the PCs have a multi-core CPU with a clock speed in GHZ. My question is about that clock speed and the cores. For example consider a CPU which has a 2 actual cores and 2 virtual cores (e.g., Intel core i3) and the computer system properties shows the 3.0 GHz as clock...
Hardware & Devices
How do I raise the multi-core CPU limit?
Hello, I was just playing an extremely high-def video (1440p) using 64-bit VLC on my Windows 7 x64 ultrabook and it is stuttering. I checked Resource Monitor and it shows total CPU maxing out at between 25 and 30%. That raises the question: if Windows 7 thinks you have 4 cores, does it cap any...
Performance & Maintenance
Multi-core Re-enable
I followed someones suggestion on another forum to disable 2 of my 4 cores in order to run Fallout 3 better. But now i can reenable those other 2 core. i did it via msconfig but when i got back into it the other 2 cores arent listed. please help i want my 4 cores back.
Hardware & Devices
clear up multi core/cpu on off
Can some one please clarify for me what does it actual mean when using msconfig to turn on/off multi-core and processors. Is it the actual processor or cores that you are turning on or enabling. By default it's set to one...does it make a difference changing it any other setting (number).
General Discussion
Multi-Core, GPU -all in one Gadget monitor
Hi, Anyone found a working all in one system monitor gadget?
Gadgets
Multi-core CPU operation
Within the past two weeks or so, (I thought it was on Win7 Forum), a link to an article was posted that gave a simple understandable explanation of the operation of multi-core processors and how they handled data processing separately and together, etc. I need to pass this info on to a friend. ...
Hardware & Devices


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 03:44.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App