It’s been decades since I am doing thread programming in C++. It was so painful to use POSIX thread APIs. It is like writing a same novel many times. Not anymore… C++0x standard is out there now. Yahoooooo.. Thread is included in the standard now. Read more about it here