Concurrent  programming exercise in C.