摘要:
1.error: expected declaration or statement at end of input 【症状】某个地方少了个括号。 阅读全文
摘要:
#include <stdio.h>#include <stdlib.h>#include <string.h>#include <pthread.h>#include <time.h>#define MAX 3int number =0;pthread_t id[2];pthread_mutex_t mut; //初始化静态互斥锁void thread1(void){ int i; printf("Hello,I am pthread1!\n"); for (i=0; i<MAX; i++) { pthre 阅读全文