A function to create a Mutex for POSIX Thread

int pthread_mutex_init(pthread_mutex_t *mp, const pthread_mutexattr_t *attr);
  • Updates the mutex thread