adding producer/consumer example from Ganesh
fixed several semantic issues that interfered with compilation.  Added debugging code
changed x=0 to x=10 to remove an intentional bug.  Changed to use spthread code instead of its own pthread function.