PDA

View Full Version : CPU-Control



zak
22-01-2009, 11:18
hello
can someone imagine how could we benefit from running thinbasic on the second core ? , i have found a program called cpu-control from:
http://www.koma-code.de/index.php?option=com_content&task=view&id=88&Itemid=93
it claims that we can choose which core to run some application, as in the attached picture, on the other hand i hope windows 7 are automatically distribute tasks fairly between the multiple cores if available.
windows xp sp2 are not aware by itself of the multi-core systems
regards

zak
22-01-2009, 11:21
attached a picture

ErosOlmi
22-01-2009, 12:54
There are some WIN API that can be sued to get/set affinity:
GetProcessAffinityMask at http://msdn.microsoft.com/en-us/library/ms683213(VS.85).aspx
SetProcessAffinityMask at http://msdn.microsoft.com/en-us/library/ms686223(VS.85).aspx

Also worth to check carefully "Process Security and Access Rights" at http://msdn.microsoft.com/en-us/library/ms684880(VS.85).aspx