• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

C++11 concurrency and Grand Central Dispatch

 
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic