Quote:
Originally Posted by mudlord
Partially true.
You can pragmatically specify which cores threads run on.
Research SetThreadAffinityMask().
|
interesting.
like i said, i've only used threads a few times in code, didn't know you can choose the core it runs on.
i guess thats what PCSX2 does when you select the "Dual Core Mode" option.
Quote:
Originally Posted by Phil
exactley: like i said....if you want true optimization, you must assign specific code to each core
|
well not necessarily phil.
think about if a user is running your multi-threaded application, and hes also watching a video in windows media player.
say WMP takes up ~99% of core 0's processing time, and core 1 is idle using ~1% of its processing power.
say you told your application to use core 0 to do one thing, and core 1 to do another thing.
since core 0 is being used at 99%, the application will take forever.
but had you let windows choose what core to use, then it would have set both threads to use core 1, and then the application would most-likely run faster.