Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

A recommendation for a good programming book in Threads and Concurrency in c\c++ [closed]

HI all!

I'm currently taking the course Operating Systems in my university. We mainly study theory and have simple exercises in c++ to exercise some theoretical principles. I want to study more about the practical programming in concurrency and threads in c\c++ and i was wondering if any of you have a good book to recommend on.

Thank you all

like image 253
Asher Saban Avatar asked Mar 31 '11 08:03

Asher Saban


People also ask

What is Concurrent Programming in C?

Concurrent programming allows the execution of multiple threads and thus we can write highly efficient programs by taking advantage of any parallelism available in computer system. C++11 acknowledged the existence of multi-threaded programs and the later standards also brought some improvements.

How can I learn concurrency?

To learn about concurrency, use a language that was designed for concurrency. Golang is a good choice since it has built-in support for concurrency and a C-like syntax which makes the language easy to learn for most programmers.

Is C++ good for concurrency?

In C++, the two most common ways of implementing concurrency are through multithreading and parallelism. While these can be used in other programming languages, C++ stands out for its concurrent capabilities with lower than average overhead costs as well as its capacity for complex instruction.


Video Answer


2 Answers

  1. Introduction to parallel computing: https://computing.llnl.gov/tutorials/parallel_comp/
  2. POSIX threads programming: https://computing.llnl.gov/tutorials/pthreads/
like image 181
Macmade Avatar answered Sep 20 '22 08:09

Macmade


I have also been looking for such a book, they are very hard to come by. This one will be released in May, if that's any help:

http://www.manning.com/williams/

I purchased this book:

http://www.amazon.co.uk/gp/product/0123705916/ref=oss_product

It's very good, it's in java, but most of the principles apply to c/c++ anyway.

like image 21
Eamonn McEvoy Avatar answered Sep 24 '22 08:09

Eamonn McEvoy