This C code implements workqueue code and theory from Programming with POSIX® Threads" book By David R. Butenhof. This is combined with a protocol to dump large data structures to disk and later recover them in order to search for weighted projective spaces as in the paper:
http://magma.maths.usyd.edu.au/~kasprzyk/research/pdf/Terminal_Wps.pdf