Green programming is an energy saving software technique. We are very much concerned about using the renewable sources of energy to save the earth, similarly, we should also use reusable software elements to create efficient code to reduce power consumption. Green programming is an attempt to build green software that will extend battery life for mobile platforms and improve energy efficiency. Increasing energy consumption by powerful computers, mobile devices etc has introduced the need to look for methods to reduce the energy use of these devices.
There are many projects that focus on more efficient or energy-saving power modes. To make energy efficient design, understanding the CPU’s defined energy states can help us. If the CPU is not actively processing the information it is said to be consuming less energy. The CPU has two states called C-states and P-states. C-states are core power states that tell us to which extent the processor is sleeping. C state corresponds to a state when the CPU is active, it is busy carrying out some task. Continue reading “Green Programming and Green Software”