There are a number of books about Pthreads out there. I us "Programming with
POSIX Threads" by Butenhof, "Pthreads Programming ..." by Nichols et al, and
"Threadtime" by Norton et al. My favorite is Threadtime, they provide a deeper
explanation of relevant issues.

I also find it handy to have "Posix.4: Programming for the Real World" by
Gallmeister since I want to use other, related, calls, too. Note that Linux is
missing some of the POSIX functionality, though. Note also that some functions
are available as patches.

I also concur with Alan Cox's recommendation of Schimmel's book.

For correctness, be sure to remind yourself everyday to avoid data dependencies,
deadlocks, and race conditions.

If you're interested in performance, then among the many other things, think
about cache effects (such as potential problems with a collection of power of 2
sized data structures) and if you are using a multiprocessor, be concerned about
false sharing of cache lines. These are some subtle things that can make a big
difference (say a factor of 2 or more).

pro bain wrote:

> hi. I know a similar mail has been posted.. but I
> havn�t seen any answers... I wonder if there are any
> good books on multi threading..
> /probain
>

Kevin P. Dankwardt


-
Linux SMP list: FIRST see FAQ at http://www.irisa.fr/prive/dmentre/smp-howto/
To Unsubscribe: send "unsubscribe linux-smp" to [EMAIL PROTECTED]

Reply via email to