This article is from the Threads Programming FAQ, by Bryan O'Sullivan firstname.lastname@example.org with numerous contributions by others.
There are several books available on programming with threads, with
more due out in the near future. Note also that the programmer's
manuals that come with most systems that provide threads packages will
have sections on using those threads packages.