This chapter presents an example that shows the use of the DECthreads pthread routines from a program written in the C language. Example 6-1 uses the status- returning interface (the default) to perform a prime number search.