Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C++ multithreading today with a fluid situation for C++ 11 - book suggestions [closed]

After a lot of searching and a bit of tries and failures, i have summed up things and this are the results:

  • C++ 11 threading model it's not ready yet for GCC ( based on g++ 4.7 ) or Clang ( from the latest svn rev. ) - ( the 2 most up-to-date compilers out there ) - Clang doesn't even have a complete libcxx library yet, it's complete only for Mac OS.
  • the standard threading library under C++ 11 it's really basic, for example the mutexes do not offer advanced features such as the "scoped based lock ( good for RAII )" like boost::thread does
  • boost::thread can be considered a wrapper, or an evolution if you will, of the Posix thread library, so in reality there isn't a real choice about threading libraries, they are not really that different, they are more like an evolution of the previous one.

Now I'm asking, if this is the scenario, where should I start ?

For example this book, is clearly oriented to the C++11 standard threading library, it gives you the basics but the one that you will probably never use in real life because the C++11 threading support is still not that good among the most popular compilers and it's really poor in terms of functionalities .

I think that it's fair to say that starting from boost::thread it's a good choice in the today's world - correct me if I'm wrong - and it's also the only real choice for both multi-platform support and legacy support for C++ 03: my problem is that I can't really find a book or a reference about concurrency and multithreading that looks just right or it's simply good enough for boost:thread.

Can you suggest a book for starting with concurrency and boost::thread?

like image 339
user1849534 Avatar asked Oct 22 '22 21:10

user1849534


1 Answers

If you are looking for a starter on boost threading take a look at this question. Personally I started from here. And then of course there is the boost documentation.

like image 166
wiggily Avatar answered Nov 12 '22 21:11

wiggily