implemented producer-consumer prob. compiled and running successfully.