Jump to content

  • Log In with Google      Sign In   
  • Create Account


mightypigeon

Member Since 26 Apr 2007
Offline Last Active Yesterday, 02:01 PM
-----

Topics I've Started

Multicore woes

14 November 2007 - 02:24 PM

Hi guys, I have been working on a fairly substantial overhaul of an app for work. I am now using a number of threads, and it runs adequately - on single core machines. We have tested on two dual core machines (an AMD and an Intel) and both demonstrate wierd behaviour, sometimes crashing... just generally uncool stuff. However if you set the process affinity in task manager whilst the app is loading (if you're quick enough ;) ) then it runs fine. I was wondering if there is a way to disable CPU affinity for a process and force it to use only one CPU/core. I know how to set the affinity for a particular thread, however I am using a couple of external libraries that have their own threading routines that I can't really touch. I'd be happy if I had to write another app that would launch the actual EXE and force the process to one CPU. Are there any Win32 API functions that exist for this? Thanks in advance, Luke.

PARTNERS