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...)
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.

Revision as of 08:51, 16 September 2010

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.

Personal tools