An example of using pthreads for writing multi-threaded programs in C.