Create condvar.c

conditional variable example.