Snow Leopard's Grand Central Dispatch
source: http://gizmodo.com/5346616/giz-explains-snow-leopards-grand-central-dispatch
-
-
- lordsbassman
- added this
Snow Leopard's Grand Central Dispatch promises to take a lot of the headache out of parallel programming by managing everything at the OS level, using a system of blocks and queues, so developers don't even have to thread their apps in the traditional way. In the GCD system, a developer tags self-contained units of work as blocks, which are scheduled for execution and placed in a GCD queue. Queues are how GCD manages tasks running parallel and what order they run in, scheduling blocks to run when threads are free to run something.
It's also a bit different from Windows' approach to parallelism, which is app oriented, rather than managing things at the OS level, so it essentially leaves everything up to the apps—apps have got to manage their own threads, make sure they're not eating all of your resources. Which for now, isn't much of a headache, but Reinders says that there is a "valid concern on Windows that a mixture of parallel apps won't cooperate with each other as much," so you could wind up with a situation where say, four apps try to use all 16 cores in your machine, when you'd rather they split up, with say one app using eight cores, another using four, and so on. GCD addresses that problem at the system level, so there's more coordination between apps, which may make it slightly more responsive to the user, if it manages tasks correctly.
Full article @ link
-
- groups:
- Tech, Current Tonight, Upstream, Max and Jason: Still Up
-
- tags:
- Tech, Upstream, OS, Snow Leopard, 6 more
-
-
JohnnySoftware
-
The article was really great. The reporter and the interview subject both did a lot to reach down inside and explain how parallel computing delivers faster performance on today's multicore processors (e.g. Core 2 Duo) in Mac & Windows PCs. Most people do not program apps, they run them. This article did a good job fo explaining the benefits of parallel programming in a way that is useful to both audiences. It is not dumbed down nor is it something that will fly over most people's heads. In that latter regard, when a tough technical word was used - the article hyperlinks it to its entry in Wikipedia. This was an Ace of a technical article. I with authors on other blogs would study it and try to emulate it.
I was slightly disappointed about one thing, though.
I practically read the article twice. Chopping out the first half of it and using that here instead of an actual summary was not so helpful. It was like reading half a short story instead of a book reviews. Reading the article had higher value too; since the author had taken the trouble to include hyperlinks to supporting information. It was a gem of an article, though - so I am really grateful someone posted a link to it here on Current.
I
- 2 years ago
-
JohnnySoftware
-
-
stevieuk
-
am i missing out
- 2 years ago
-
stevieuk
-
-
Sam_the_Wizer
-
It would be interesting to benchmark this against real-time prioritization in Linux.
- 2 years ago
-
Sam_the_Wizer
-
-
lordsbassman
-
Sam_the_Wizer:
yeah, running Final Cut Pro.. that would be interesting..
- 2 years ago
-
lordsbassman
-
-
heimbachae
-
wait.... window's has apps???
hah i kidd i kidd
- 2 years ago
-
heimbachae
-
-
kennymotown
-
I just picked up snow leopard and will run it tonight. I love my Imac.
- 2 years ago
-
kennymotown
-
-
JonRaymond
-
Awesome
- 2 years ago
-
JonRaymond
