Snippets are small applications and functions that succinctly demonstrate POSIX Thread programming techniques or extend the function of threads.


Thread Extensions

  • Read/Write Lock
  • FIFO Mutex Lock
  • Timed Mutex Lock
  • Debug Mutex Lock
  • Spin Lock
  • Recursive Mutex Lock
  • Examples of these are in Bil Lewis' seminar package

Asynchronous I/O (pread/pwrite)

A LinuxThreads version of aio package
pread/pwrite routines are in the great book Programming with Threads. This page points to the source code for the examples in the book.

Code From Books

The great book Programming with Threads.
The alway wonderful "Pthreads" from O-Reilly books.

Misc Code

Sun has an ftp site with lots of old pthread stuff.

If you have comments or suggestions, email me at sdybiec@humanfactor.com