PThread implementing
working on PThread and mutex