Binding .NET application to single CPU

  • Thread starter Thread starter xtseeker
  • Start date Start date
X

xtseeker

We have a multi-threaded .NET application, the problem is that the
previous programmer didn't care to have locks on the shared variables.
Somehow the application doesn't end up in Locked state on a single CPU
machine but I have tried running it on several dual core machines and
it randomly freezes. I am searching for a quick-fix until I implement
locks around all the shared variables in the entire application.

Is there a way to bound the .NET application to single CPU.

Thanks!
 
Binding to a single CPU isn't going to fix your problem.

Every single race condition you hit on a dual-core machine will also hit on
a single processor machine, albiet slightly less frequently.

At this point, there is no quick fix solution - you need to have someone fix
the application.
 
Back
Top