Sign in to follow this  

Book on Multithreading

This topic is 3594 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi everyone, Can someone suggest a reading (preferably a book) on Multithreaded programming (also preferably with C++ examples) ? Thanks a lot, PS: I absolutely know nothing about it, and want to have an introduction and possibly do a couple projects with the help of a resource to slowly get into it.

Share this post


Link to post
Share on other sites
David R. Butenhof's Programming with POSIX Threads is very well written. If you have a POSIX system handy, I'd definitely go with this one.

The examples are in C, but since the Boost thread library's interface is more-or-less modelled after that of pthreads, you can actually C++-ise the examples quite easily. In fact, you might even be able to play along on Windows without too much difficulty.

Patterns For Parallel Programming by Mattson et al is also pretty good. It's less about the nitty gritty of threads and the associated primitives and more about how to break problems down so that they can solved using parallel algorithms.

Examples are in Java, and the C bindings for MPI and OpenMP. The basics of all three systems are briefly explained too, which is nice. The only thing I didn't really like about this one is that it tended to repeat itself.

Share this post


Link to post
Share on other sites
Inside NT was one of the best books I've read on the internals of an operating system.

Goes indepth on threading, disk access and, like the title says, other NT internals. Granted, NT is an older operating system, but the the premises and technology are still very current. It will give you that "behind the scenes" understanding that is often overlooked by other dev books.

Not only that, the book is cheap too.

Happy coding.

Share this post


Link to post
Share on other sites

This topic is 3594 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this