Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

C++11 concurrency and Grand Central Dispatch

 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
How do you compare C++11 concurrency support to Grand Central Dispatch?
Any plans or possibilities to include GCD as a part of C++11?
Thanks.
 
Anthony Aj Williams
author
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hussein Baghdadi wrote:Hi,
How do you compare C++11 concurrency support to Grand Central Dispatch?
Any plans or possibilities to include GCD as a part of C++11?
Thanks.


As I understand it, GCD provides a thread pool implementation: you submit tasks, and the runtime executes them concurrently when possible. The basics of this are covered by std::async, but it's not a complete match. Thread pools are currently something under discussion for the next C++ standard, and there are existing C++ libraries that provide them, but GCD will not be included as-is --- for one thing, it's a C level API that does not deal with exceptions.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic