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: Assigning tasks to processors

10 Apr 2014   #1

win 7 64bit
Assigning tasks to processors

Using a 16 core machine (2x8), I am performing some parallel processing speed testing. I am using "affinity..." to force certain tasks onto certain processors/cores, and this appears to be working fine. Assuming I set up a 14 task on 14 core run, is there any way I can PREVENT the myriad OS Windows tasks from running on these 14 cores? I want to restrict them to the remaining 2 cores.

Also, while instrumenting certain functions and their calling trees with the real time clock, I notice their duration is always a multiple of about 15.5 milliseconds. Is this a tunable parameter?

Thank you!

My System SpecsSystem Spec
10 Apr 2014   #2

Windows 7 Pro 64 bit

CPU affinity is a restriction on processes to use only specific cores. There is no provision for reserving cores for any purpose or imposing restrictions on how individual cores will be used. The system thread scheduler can and will use all cores for any processes, subject to affinity restrictions they may have.

Affinity is a restriction on processes, not on cores.

As a general rule it is best to let Windows manage thread scheduling as it wishes. The goal of this is always to optimize performance. There are complex rules that control this. Manually setting affinity is usually not beneficial. Of course there are a few exceptions.

Most system timing on multi core systems has a granularity of 15.5 ms. This is part of system design and is not user alterable.
My System SpecsSystem Spec

 Assigning tasks to processors

Thread Tools

Similar help and support threads
Thread Forum
Are there any new processors that are faster than Core I7 processors
Why the strangeqe question? you see I have a Dell XPS 15z laptop with a core i7 processor, 8 Giga RAM running Windows 7 Premium and I also have an HP desktop with a core two duo processor, 3 Gigs of ram running Windows 7 Professional but surprizingly the desktop runs faster than the laptop when...
Hardware & Devices
Assigning NIC in Virtual XP
OK, my problem is simple yet, I do not use virtual xp at all so I am kinda lost here. I have a customer that wants to run his IP based printer from this VM using a software that is not win7 supported. The software loaded perfectly. I just need to get a NIC to work so I can ping the printer at a...
Network & Sharing
Is assigning a different user possible?
I have a Acer Aspire One that crashed and blew smoke out the power plug hole a few weeks ago. I had Windows 7 installed on it. Sent it to the factory. They replaced the motherboard, keyboard, LCD cable and HARD DRIVE........ S'ok didn't loose any data. Knew I'd just re-install all of the programs I...
General Discussion
Assigning speakers
How can I assign my Headphones (front jack) to play from a certain program, and the main speakers another. What I'm trying to do is assign my Head phones to play everything from Xfire, and to play my game sounds from my speakers. This is possible right? Thanks in advanced - MUZZIES
Sound & Audio
Does assigning windows 7 RAM take it away even when off
I assigned winodws 7 1GB of ram out of 1.99GB, when windows 7 is turned off and virtual pc isn't running will my host os (windows xp) still only have .99GB of ram left to use? or do I get my 1GB back once I shut it down?

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 10:58.
Twitter Facebook Google+