Keith said:
Tor Rustad said:
The OS will try to stop such an application for consuming CPU cycles,
so either you need to write a *rootkit*, or fool the OS billing system.
[...]
<OT>
Windows prevents any process from consuming more than 50% of the CPU?
Really? How do I enable this?
</OT>
Keith, very off-topic! *shocked*
Try: remove the buggy kernel mode code, and see SetPriorityClass() and
SetThreadPriority() WIN32 API for ideas.
For Linux, BSD, Solaris, AIX, HPUX and Windows, user land programs can
consume more than >50% CPU. BUT, those OS'es try to avoid this, by
scheduling time interrupts, which bill the running process/thread. When
it's quota is up, the kernel scheduler typically put the running user
mode process/thread to sleep. I'm not sure what the actual limit is on
Windows, but it's there.
See e.g. "Modern Operating Systems" 2.ed, p.796, Tanenbaum.