tags:

views:

690

answers:

5

I am asked to work on a piece of code which relies heavily on pthreads. So many calls are made to this library that I know nothing of. I have learnt the basics of pthread and have tried out a few examples like creating joining etc. but dont know the depths of it.

I have learnt much of it using http://www.yolinux.com/TUTORIALS/LinuxTutorialPosixThreads.html

The above tutorial doesn't inlcude an indepth coverage of the pthread library that a beginner should need. Could u guys recommend a website or an eBook for me to have a look and learn most of the advanced stuff like signal handling, mutexes, concurrency etc.

TIA, the_Saint

+1  A: 

https://computing.llnl.gov/tutorials/pthreads/

http://en.wikipedia.org/wiki/POSIX_Threads

[EDIT] First link was broken, now is fixed.

tvanfosson
+1  A: 

The best way to learn about any programing concepts is to go through the examples like to solve some problems using pthreads like Producer & consumer, Reader/writer problems and implement simple mathematics calculator etc. there is some links which may help you,
http://www.humbug.org.au/talks/pthreads/examples.html,
http://www.cs.ucsb.edu/~tyang/class/pthreads/index_sgi.html

There is also one book "Advanced Programming in the UNIX® Environment: Second Edition By W. Richard Stevens, Stephen A. Rago"

All the Best!

Ankit S
A: 

As Ankit S states above, Advanced Programming in the Unix Environment is a good source. Also, volume 2 of Unix Network Programming (also by Stevens) has a big section on posix semaphores and similar topics.

ConcernedOfTunbridgeWells
+1  A: 

Check out "Programming with POSIX threads" by Butenhof (eg. here)

Andrew Edgecombe
A: 

thanx all, I will check out your links and suggestions.