View Single Post
Posts: 1,746 | Thanked: 2,100 times | Joined on Sep 2009
#90
Originally Posted by gerbick View Post
The Apple iPhone cannot do true multi-tasking. What they've implemented into iOS 4 is basically still serial-tasking and switches between apps that keep a state, but do not continue. This might change later to quasi-multi-tasking allowing apps like Pandora to run in the background and continue to play music and such.
They're using Grand Central to do it. The main thread is stopped when pushed into the background but not freed, however that main thread can pass a fairly constrained subthread off to the Grand Central daemon which lets things like Pandora continue to stream in the background.

It's actually quite interesting, and the architecture is mostly open source (but requires Objective-C's runtime and syntax changes, and the license isn't quite compatible with the GPL.)

Oh wait, was that the wrong kind of comment for this thread?
 

The Following 2 Users Say Thank You to wmarone For This Useful Post: