This is example 2.28 from "MPI: The Complete Reference, vol 1," 2nd
edition.  It is the fourth version of the multiple-producer
single-consumer example to be considered in this section of the book.
It replaces the MPI_Waitany of example 2.26 with an MPI_Waitsome.
This is to correct the starvation problem.

