linuxC语言系统编程多线程学习实例一、测试C语言代码**multiple_thread.c:cmultiplethreadprogramminginlinux*author:w linux C语言系统编程多线程学习实例 一、测试C语言代码 /** multiple_thread.c : c multiple
linux C语言系统编程多线程学习实例
一、测试C语言代码
/** multiple_thread.c : c multiple thread programming in linux*author : weifanghai*time : 2017/12/6*/#include #include #include #include #define MAX 10pthread_t thread[2];pthread_mutex_t mut;void *thread1(){ int number0, i;printf ("thread1 : Im thread 1\n");pthread_mutex_lock(for (i 0; i