#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; }