Under Windows NT/2K/XP, the unit of work that is scheduled by the operating system is the thread, not the process. So when a thread is ready to execute (not waiting on an I/O operation to complete, etc), the OS will run it on the next available CPU.
This applies for Intel Hyperthreading, as well as the forthcoming dual-core CPUs from AMD and Intel.
Chip H.
____________________________________________________________________ Click here to learn Ways to help with Tsunami Relief If you want to get the best response to a question, please read FAQ222-2244 first
As Chip has already said, your thread gets scheduled on the next available CPU. You can change the priority so that if there are a number of threads on the ready chain, yours will get scheduled first. Some OSs allow you to set a processor affinity, I don't know if XP does. Besides, apart from trying to avoid paying licenses for multi-cpu versions of software, I can't think of a good reason to tie your threads to a particular processor.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.