Search results
Results from the WOW.Com Content Network
However, the idle process does not use up computer resources (even when stated to be running at a high percent). Its CPU time "usage" is a measure of how much CPU time is not being used by other threads. In Windows 2000 and later the threads in the System Idle Process are also used to implement CPU power saving.
Many operating systems, for example Windows, [1] Linux, [2] and macOS [3] will run an idle task, which is a special task loaded by the OS scheduler on a CPU when there is nothing for the CPU to do. The idle task can be hard-coded into the scheduler, or it can be implemented as a separate task with the lowest possible priority.
CPU time (or process time) is the amount of time that a central processing unit (CPU) was used for processing instructions of a computer program or operating system. CPU time is measured in clock ticks or seconds. Sometimes it is useful to convert CPU time into a percentage of the CPU capacity, giving the CPU usage.
The first number is the total number of seconds the system has been up. The second number is how much of that time the machine has spent idle, in seconds. [16] On multi-core systems (and some Linux versions) the second number is the sum of the idle time accumulated by each CPU. [17]
An idle computer has a load number of 0 (the idle process is not counted). Each process using or waiting for CPU (the ready queue or run queue) increments the load number by 1. Each process that terminates decrements it by 1. Most UNIX systems count only processes in the running (on CPU) or runnable (waiting for CPU) states.
As other resources are also shared, processor affinity alone cannot be used as the basis for CPU dispatching. If a process has recently run on one virtual hyper-threaded CPU in a given core, and that virtual CPU is currently busy but its partner CPU is not, cache affinity would suggest that the process should be dispatched to the idle partner CPU.
In many applications, the CPU and other components are idle much of the time, so idle power contributes significantly to overall system power usage. When the CPU uses power management features to reduce energy use, other components, such as the motherboard and chipset, take up a larger proportion of the computer's energy.
For example, hardware timers send interrupts to the CPU at regular intervals. Most operating systems execute a HLT instruction when there is no immediate work to be done, putting the processor into an idle state. In Windows NT, for example, this instruction is run in the "System Idle Process". On x86 processors, the opcode of HLT is 0xF4.