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 Home Premium 32 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 for2: Assigning tasks to processors
Thread Forum
Assigning NIC in Virtual XP Network & Sharing
Is assigning a different user possible? General Discussion
Assigning bandwidth Network & Sharing
Does assigning windows 7 RAM take it away even when off Virtualization

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 07:06 AM.
Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App