6
голосов
2ответов
415 просмотров

Единая кодовая база для Snow Leopard и Leopard

Фон Я разработчик, который пытается создать приложение для Mac. Я собираюсь заполучить Снежного барса. До сих пор я строил на Leopard. Я занимаюсь разработкой Cocoa всего около года не очень интенсивно. Я много читал о Snow Leopard и, в частности, о Grand Central Dispatch. Я знаю, что он и...

14
голосов
1ответов
1765 просмотров

How does Grand Central Dispatch really use the operating system?

I have a solid idea how GCD works, but I want to know more about the touted "operating system management" internals. It seems almost every technical explanation of how Grand Central Dispatch works with the "Operating System" is totally different. I'll paraphrase some of my findings. "It's a...

33
голосов
3ответов
36445 просмотров

Dispatch queues: How to tell if they're running and how to stop them

I'm just playing around with GCD and I've written a toy CoinFlipper app. Here's the method that flips the coins: - (void)flipCoins:(NSUInteger)nFlips{ // Create the queues for work dispatch_queue_t mainQueue = dispatch_get_main_queue(); dispatch_queue_t queue = dispatch_get_global_...

4
голосов
2ответов
960 просмотров

Concurrent network client in Cocoa

I'm trying to work out in my head the best way to structure a Cocoa app that's essentially a concurrent download manager. There's a server the app talks to, the user makes a big list of things to pull down, and the app processes that list. (It's not using HTTP or FTP, so I can't use the URL-loadi...

5
голосов
4ответов
2173 просмотров

How different programming languages use closures?

To my knowledge, combined with the knowledge of others, among the mainstream languages Objective C C# VB.net Java Python Ruby Javascript Lisp Perl have closures and anonymous functions. Plain C/C++ doesn't have either of those. Do closures in these languages have the same semantics? How impo...

2
голосов
2ответов
586 просмотров

Grand Central Dispatch versus Cilk++

Anybody have any thoughts on Grand Central Dispatch (which has now been open-sourced by Apple) and Cilk++? Comparisons/contrasts? Is Cilk more Windows-only?

5
голосов
3ответов
2244 просмотров

Why should I use Grand Central Dispatch over OpenMP?

Apple introduced Grand Central Dispatch (a thread pool) in Snow Leopard, but haven't gone into why one should use it over OpenMP, which is cross-platform and also works on Leopard. They're both pretty easy to use and look similar in capability. So, any ideas?

9
голосов
6ответов
2093 просмотров

Suggested resources for learning about blocks

What are some good suggested resources for learning about blocks and GCD in Mac OS X and iOS

7
голосов
5ответов
1288 просмотров

Grand Central против параллельных расширений

Кто-нибудь знает какие-либо хорошие веб-сайты о грядущей технологии "Grand Central" от Apple (в Snow Leopard) и о том, как она сравнивается с Parallel Extensions (и собственными параллельными вычислениями) от Microsoft?