Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

concurrency in C++?

 
Arjun Shastry
Ranch Hand
Posts: 1899
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello author,
In current c++ standrd[1998], how multithreading is handled? Is it compiler specific like based on p-threads/WinAPI?
Is C++0x defining new standard for concurency?

Regards
 
Anthony Aj Williams
author
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Arjun Shastry wrote:
In current c++ standrd[1998], how multithreading is handled? Is it compiler specific like based on p-threads/WinAPI?


In C++98, the standard does not acknowledge the existence of multithreading. Any use of multithreading is thus compiler/platform specific. As you suggest, POSIX threads and the Windows API are commonly used for multithreading in C++.

Arjun Shastry wrote:
Is C++0x defining new standard for concurency?


Yes. C++0x defines a memory model which acknowledges the existence of multiple threads, and provides a set of concurrency facilities in the library. My book covers both of these in depth.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic