a c program to explore the different func of mutex