beautypg.com

Power management – Juniper Systems Allegro DOS Manual User Manual

Page 233

background image

Software Developer's Guide for Windows CE Page 7-9

Power Management

Windows CE was designed with battery operation in mind. The
operating system handles power very nicely on its own. Windows CE
puts the processor to sleep when there are no active threads using the
processor. When writing applications, the programmer should be
careful to not use any functions that keep the threads active when they
are not in use.

Power Management Tips:
- Do not spin in a loop
- Use the Wait APIs such as WaitForSingleObject()
- Sleep() may also be used effectively