3 ms·
What's the link between blocks/grand central and multitasking on the iPhone?
by TimothyFitz 16y ago
What's the link between blocks/grand central and multitasking on the iPhone?
- allenbrunson 16y agonone. grand central is a scheme to make it easier to parallelize your code, generally so it can take advantage of two or more cpu cores. not much use on iphone devices, which aren't going to have more than one core for a long time. blocks add closure-like abilities to C. multitasking, in this context, is a way to run two or more third-party apps at once. so, basically, no overlap at all.
- brisance 16y agoApple may be laying the groundwork for specialized multicore processors on mobile handsets. Take the just-released Macbook Pros for example. nVidia's Optimus has controls at the application-level whereas Apple's technology is at the library/framework-level. There is no user interaction to switch between different graphics chipsets; depending on need for performance/battery life, the OS does "the right thing". Ars has an article on it http://arstechnica.com/apple/news/2010/04/inside-apples-automatic-gpu-switching.ars http://arstechnica.com/apple/news/2010/04/inside-apples-auto...
- mattdw 16y agoIt sounds like Grand Central is the mechanism through which multitasking roles are described/created; i.e. programmers declare the background parts of their app as closures (GCD blocks) which are handed off to a task manager. I might be wrong on this.