To preface this question: I've never actually done iPhone development. Haven't even downloaded the SDK yet. This question arose while I was brainstorming about what kind of app might be interesting and feasible for me to create. That said...
I know the iPhone doesn't (yet) support multi-tasking, but I'm curious what happens when it goes into sleep mode. I notice on my wife's iPhone that if I don't "do" anything for a period of time it goes into sleep mode. The screen blanks, etc.
So would it be possible to create an app that did "something" every ~10s without respect to user input? Or would that app stop doing "something" as soon as the phone goes to sleep?