有人对Grand Central Dispatch(现在已经被Apple开源)和Cilk ++有什么想法吗?比较/对比? Cilk是否仅限Windows?Grand Central Dispatch与Cilk ++
2
A
回答
3
GCD的创新之处在于它包含内核级并行。有很多并行库和并行编程语言,但这都是应用程序级别的支持。 GCD并没有将进程中的一堆线程粘在一个池中,而是将它们在处理器之间分裂,GCD在整个系统中都有一个共享的线程池。
0
除了任务级别的并行性,我在各种* NIX中使用的辅助好处是我在ObjC和直接C代码中广泛使用的blocks runtime。无论如何,C是一个很好的语言;赋予它更高级的功能就像来自上帝的礼物;)
相关问题
- 1. Swift - Grand Central Dispatch Class
- 2. 双核iPad(A5)= Grand Central Dispatch?
- 3. Grand Central Dispatch(GCD)和CoreData
- 4. Swift - Grand Central Dispatch vs Blocks/Closures
- 5. Grand Central Dispatch等效于omp_get_thread_num
- 6. 用于Visual Basic的Grand Central Dispatch?
- 7. Qt中有什么类似Grand Central Dispatch?
- 8. 基于Grand Central Dispatch(GCD)的Web框架?
- 9. 使用Grand Central Dispatch“Throttle”指令队列
- 10. Grand Central Dispatch(GCD)调度源标记
- 11. Grand Central Dispatch寻找不同的方法
- 12. Grand Central Dispatch没有显示NSLog语句
- 13. 如何从Grand Central Dispatch获取数组?
- 14. 我是否正确使用Grand Central Dispatch?
- 15. 使用Grand Central Dispatch(GCD)时获取OSSpinLockLock
- 16. Grand Central Dispatch - 在加载时显示第一张图片?
- 17. 程序进入挂起模式时的Grand Central Dispatch
- 18. Grand Central Dispatch应该创建多少个线程?
- 19. 使用Grand Central Dispatch和UINavigationController的用户界面问题
- 20. 任何类似于Objective-C之外的Grand Central Dispatch?
- 21. 是否可以在Windows上使用Grand Central Dispatch(`libdispatch`)?
- 22. Grand Central Dispatch如何真正使用操作系统?
- 23. 用Grand Central Dispatch(GCD)创建N个线程
- 24. 在connectionDidFinishLoading中使用Grand Central Dispatch解析JSON:?
- 25. 来自Grand Central Dispatch的dispatch_async()和来自C++的std :: async 11
- 26. iOS - Grand Central Dispatch从dispatch_async块中获取值
- 27. 如何使用Grand Central Dispatch并行化Sudoku解算器?
- 28. iPhone - Grand Central Dispatch在iPhone 4S上无法正常工作
- 29. 如何在iOS中使用Grand Central Dispatch在.c文件中
- 30. 如何在iPhone上检测Grand Central Dispatch功能支持?