what happens to code/data when waiting for an alarm
<p>When an app sets a  repeating alarm and from the users point of view the phone is in normal mode with an alarm in the notification bar what is happening with the code of the app?  I assume the values of all the variables are stored in the phone memory in such a way that when the alarm wakes up the original state is restored.   Does setting an alarm impose much more demand on the battery?   </p>
