linux下的POSIX C 多线程编程 helloworld
#include
#include
#include
#include
#define MAX 10
pthread_t thread[2];
pthread_mutex_t mut;
int number = 0;
int i;
void* thread1( void *param )
{
printf( "thread1: I'm thread 1\n " );
原创
2012-05-08 11:17:19 ·
2128 阅读 ·
0 评论