Book or Good tutorial

Book or Good tutorial

Post by jmcca » Wed, 28 Mar 2007 08:13:21

Is there a good book, or tutorial, on the concepts and theories of
multi-threaded programming, concurrent programming, and such things
for single, & multiprocessors? Most of the books I have seen on
threading are on specific languages and threading libraries.
Sometimes, the information can be applied to other languages and
libraries, and other times they can not. Does anything actually exist
that talks about the theories and best practices?

Book or Good tutorial

Post by Bin Che » Wed, 28 Mar 2007 23:14:12

David's book is my recommendation. Seems you like some abstract book
that is considered tedious by most of the people. Books with examples
in a specific language can make the concept more concrete.

The book's is:


Book or Good tutorial

Post by jmcca » Thu, 29 Mar 2007 08:55:28

I will have to check for that book next time I am in a bookstore. How
well do the concepts work with say Windows threads? I think there is/
was an attempt to make pthreads available on windows, but I am not
sure of it's status. I have found in the past that if you can grasp
concepts, then you can apply them to almost any language. The way I
look at it is: if I understand the concepts, I might be able to
understand where pthreads & windows threads are coming from (along
with how they are the same and different in applying theory).

Book or Good tutorial

Post by Bin Che » Thu, 29 Mar 2007 13:49:13

Sorry, I have no idea about windows thread programming.

Book or Good tutorial

Post by Chris Thom » Thu, 29 Mar 2007 15:02:47


Yup, that's a good one!


Good idea.

The concepts themselves can be made to work with Windows, it's just that you
have to use completely different means to get there... Usually, it turns out
to be a bit complex and "tedious", indeed...

I recommend taking a good look at:


You are well on your way to understanding why POSIX Threads are superior to
Windows Threads. For instance, well, here are two small examples:

-- It's rather trivial to create a Windows Event primitive with PThreads...
It's no so trivial to create a condition-variable with Windows Threads...

-- It's rather trivial to create Thread-Specific-Storage (TSS) scheme with
PThreads, it's fairly cumbersome to create it with Windows Threads (e.g.,
it's called Thread-Local-Storage (TLS) over in the WinWorld)...

I am sure that this list has the potential to be a mile long!


Book or Good tutorial

Post by Martin Vui » Thu, 29 Mar 2007 19:12:22

"Chris Thomasson" < XXXX@XXXXX.COM > wrote in

Windows Vista has added native Condition Variables to the
Windows API, with semantics that appear similar to those of
POSIX condvars, complete with spurious wake-ups.

Only usable within a single process, as far as I can tell.


I do not want replies; please follow-up to the group.