线程的创建,加锁,解锁销毁锁
#include <pthread.h>int pthread_mutex_init(pthread_mutex_t *restrict mutex, const pthread_mutexattr_t *restrict attr);销毁int pthread_mutex_destroy(pthread_mutex_t mutex);// 返回:若成功返回0,否则返回错误编号#include <pthread.h>加锁int pthrea