#include <sched.h>

#include <pthread.h>

main()
{
  pthread_t id0, id1, id2;   ret
=pthread_create(&id1,NULL,(void *) thread_cmd,NULL);   if(ret!=0)   {     printf ("Create pthread_cmd error!n");     exit (1);   } } void thread_cmd(void) { int fd; while(1) { ; } return; }

 

posted on 2016-04-20 19:11  阳光农场皮卡  阅读(430)  评论(0编辑  收藏  举报