Added WaitSets example

C, C++, and Java examples.