Handle external signals

From Green software

(Difference between revisions)
Jump to: navigation, search
(New page: Signals originating from the operating system should always be explicitly handled by an application. Certain unhandled signals can stop a system or subsystem from going into a lower power...)
Current revision (14:44, 16 September 2010) (edit) (undo)
(References)
 
(One intermediate revision not shown.)
Line 1: Line 1:
Signals originating from the operating system should always be explicitly handled by an application.
Signals originating from the operating system should always be explicitly handled by an application.
Certain unhandled signals can stop a system or subsystem from going into a lower power state, which leads to unnecessary energy consumption.
Certain unhandled signals can stop a system or subsystem from going into a lower power state, which leads to unnecessary energy consumption.
 +
 +
When a system running Windows 7 wants to enter a state of suspension, a WM_POWERBROADCAST message with an event type of PBT_APMSUSPEND is sent to all applications. The applications receive this message iteratively, so applications that take a long time block the suspend path and add to the overall suspend time on the system [http://www.microsoft.com/whdc/system/pnppwr/powermgmt/Science-Sleep.mspx].
 +
 +
== References ==
 +
[1]. [http://www.microsoft.com/whdc/system/pnppwr/powermgmt/Science-Sleep.mspx The Science of Sleep] (for Windows 7). 2010. Microsoft Corporation.
 +
 +
== Sources ==
 +
This best practice is mentioned in:<br />
 +
Petter Larsson. 2008. Energy-Efficient Software Guidelines. [http://software.intel.com/en-us/articles/energy-efficient-software-guidelines/ White Paper for the Intel Software Solutions Group].

Current revision

Signals originating from the operating system should always be explicitly handled by an application. Certain unhandled signals can stop a system or subsystem from going into a lower power state, which leads to unnecessary energy consumption.

When a system running Windows 7 wants to enter a state of suspension, a WM_POWERBROADCAST message with an event type of PBT_APMSUSPEND is sent to all applications. The applications receive this message iteratively, so applications that take a long time block the suspend path and add to the overall suspend time on the system [1].

References

[1]. The Science of Sleep (for Windows 7). 2010. Microsoft Corporation.

Sources

This best practice is mentioned in:
Petter Larsson. 2008. Energy-Efficient Software Guidelines. White Paper for the Intel Software Solutions Group.

Personal tools