learn chp7 mutex,condition variable