Binding .NET application to single CPU

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!
 
C

Chris Mullins [MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top