C语言多线程

#include
#include

创新互联公司-专业网站定制、快速模板网站建设、高性价比微山网站开发、企业建站全套包干低至880元,成熟完善的模板库,直接使用。一站式微山网站制作公司更省心,省钱,快速模板网站建设找我们,业务覆盖微山地区。费用合理售后完善,10年实体公司更值得信赖。

#define NUM 10

void thread(void * arg)
{
int i;
for (i=0;i<1;i++) {
printf ("in thread:%d\n", (int)arg);
sleep (1);
}
}

int main(void)
{
pthread_t id[NUM];
int i,ret;

for (i=0;i

}


文章标题:C语言多线程
分享地址:http://scyanting.com/article/jhghcd.html