Question

happens to me occasionally:

I start my program in visual studio and due to some bug my program goes into 100% cpu usage and basically freezes windows completely.

Only by utter patience requesting the task manager (takes forever to come up and paint itself) I can kill my process.

Do others encounter this too sometimes? Is there a clever trick to get this process down (other than pulling the plug and possible ruining files on the HD)? It now takes 5-10 minutes to kill it properly if the task manager is not accidentally present and I have to request this first

R

p.s. weird that a 'multitasking os' can still allow processes to eat up so much time that nothing else can be done anymore. My program doesn't even bump up it's thread priorities or anything

Was it helpful?

Solution

Check out Process Lasso

"Process Lasso is a unique new technology that will, amongst other things, improve your PC's responsiveness and stability. Windows, by design, allows programs to monopolize your CPU without restraint -- leading to freezes and hangs. Process Lasso's ProBalance (Process Balance) technology intelligently adjusts the priority of running programs so that badly behaved or overly active processes won't interfere with your ability to use the computer!"

http://www.bitsum.com/prolasso.php

I am not affiliated with Bitsum, just a user of their product, and it helps me solve this type of problems.

OTHER TIPS

For what it's worth, I've never see this on either XP 64 or Vista 64, developing C++ apps in Visual Studio. Perhaps an OS upgrade is in order?

Edit: I use Process Explorer as a replacement Task Manager - it wouldn't surprise me if it did a better job of appearing in good time even when there's a rogue process running. And you can use it to boost its own priority.

I usually hit ctrl-alt-delete start the task manager sort by cpu find the offending process and right click and end the process..

task manager usually has enough priority to do this although it may be slow.

I think a shotgun to the head is the only way to be sure.
alt text

I generally don't see anything like this happen strictly as a function of an app that's eating 100% CPU. As part of stability / performance testing, I've gotten apps to cause Windows to get very slow, but this is usually done by writing heavily threaded apps (thus causing the O/S scheduler to thrash), or by writing apps that consume all available system memory or resources (much more impactful to the GUI apps than simply one thread that consumes its full share of processor time during its slices).

You say you get this behavior under Visual Studio? VS has a "Pause" button...

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top