in reply to hogging N% of CPU ?
The normal thing would be for you to differentiate between what's important and what's not. This is a rough allocation of CPU resources and that's done by priority levels. Yes, even Windows has this idea. Type: "help start" at the command prompt. If you start a program at the IDLE priority level, that means when the CPU has nothing else to do, "run me". Now if the computer isn't really doing anything, then your program might take close to 100% of the CPU!
If you have something "more important" then you run it at a higher priority level. There are lots of levels, only a few of which are accessible from the command line, but more are accessible via various API's.
How the OS decides what to do next is of course very OS specific and this whole subject can get VERY complicated. But normally for the average user, saying just "I'm normal and should share with my peers", "I'm less important than other stuff" and "I'm really not that important at all" is enough (these are priority levels).
Update: Its summer time now and I don't run my CPU at 100% during the summer. But during the winter, especially on the cold nights...I crank this baby up! I donate CPU power to SETI@Home or Einstein@Home or one of the other BOINC projects. This basically turns my computer into a space heater!
This is an example of a "well behaved" low priority compute intensive task. I don't notice a difference at all in terms of response times, but the room stays warmer! When I'm not doing anything, one of the BOINC projects is maxing out my CPU MIPS. Anyway, instead of running electric space heaters, consider running the heck out of your computer in the interest of science! They've got the priority scheduling part right and it works. The watts that the space heater consumes does nothing useful besides heating the room. The watts that the computer consumes heats the room and at least has the potential for doing something useful.
|
|---|