Limit to one cpu
-
Is there anyway to programmatically limit an application to one cpu? I have a third party tool that dies on multiprocessor computers but it works great on one processor. Any ideas? :~
Is your application multithreaded? It could be that your code is not actually thread-safe, but you haven't actually tested it enough on uniprocessor machines to see it fail.
-
Is there anyway to programmatically limit an application to one cpu? I have a third party tool that dies on multiprocessor computers but it works great on one processor. Any ideas? :~
On Task Manager you can use "Set Affinity..." menu to limit it to only one CPU. There are API calls to control processor affinity. Yes, even I am blogging now!
-
Is there anyway to programmatically limit an application to one cpu? I have a third party tool that dies on multiprocessor computers but it works great on one processor. Any ideas? :~
-
Is there anyway to programmatically limit an application to one cpu? I have a third party tool that dies on multiprocessor computers but it works great on one processor. Any ideas? :~
Sweet, thanks for the quick replys. Arun My application that uses the third party tool is not multithreaded. Daniel Yeah, I saw that in the task manager, that's what led me to believing that the multi cpu was the problem because when I did set the affinity to just one cpu it works great. parths Sweet, I'll have to try that out and see if I can limit it using that call. UPDATE: I tried that SetProcessAffinityMask method and it worked like a charm. I added what I did to the www.pinvoke.net/[^] collection. Love that site. Thanks for you help.