有人對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. Swift - Grand Central Dispatch vs Blocks/Closures
- 3. Grand Central Dispatch等效於omp_get_thread_num
- 4. 雙核iPad(A5)= Grand Central Dispatch?
- 5. Grand Central Dispatch(GCD)和CoreData
- 6. Qt中有什麼類似Grand Central Dispatch?
- 7. Grand Central Dispatch(GCD)調度源標記
- 8. 使用Grand Central Dispatch(GCD)時獲取OSSpinLockLock
- 9. 基於Grand Central Dispatch(GCD)的Web框架?
- 10. Grand Central Dispatch尋找不同的方法
- 11. 用於Visual Basic的Grand Central Dispatch?
- 12. 在connectionDidFinishLoading中使用Grand Central Dispatch解析JSON:?
- 13. 如何在iPhone上檢測Grand Central Dispatch功能支持?
- 14. iOS:如何在使用Grand Central Dispatch(GCD)時同步我的managedObjectContext?
- 15. Objective-C - 剖析泄漏顯示Grand Central Dispatch正在泄漏
- 16. Grand Central Dispatch如何真正使用操作系統?
- 17. 是否可以在Windows上使用Grand Central Dispatch(`libdispatch`)?
- 18. 爲什麼要使用OpenMP上的Grand Central Dispatch?
- 19. Grand Central Dispatch中的線程數和線程數
- 20. 使用Grand Central Dispatch和UINavigationController的用戶界面問題
- 21. Grand Central Dispatch應該創建多少個線程?
- 22. 如何使用Grand Central Dispatch並行化Sudoku解算器?
- 23. 如何在使用Grand Central Dispatch時發佈NSNotification?
- 24. 正確使用具有多個UIActivityIndicatorViews的Grand Central Dispatch
- 25. 程序進入掛起模式時的Grand Central Dispatch
- 26. iPhone - Grand Central Dispatch在iPhone 4S上無法正常工作
- 27. Grand Central Dispatch:如何等待塊的隊列完成?
- 28. 如何在Grand Central Dispatch中創建死鎖?
- 29. Grand Central vs Parallel Extensions
- 30. 爲什麼可可遊戲避免Grand Central Dispatch創建計時器?