摘要:
#include <pthread.h>#include <stdio.h>#include <sys/time.h>#include <string.h>#include <unistd.h>#define MAX 10pthread_t thread[2];pthread_mutex_t mut;int number=0, i;void *thread1(void *){ printf ("thread1 : I'm thread 1\n"); for (i = 0; i < MAX; i++) 阅读全文