Home | History | Annotate | Download | only in tests
      1 #include <pthread.h>
      2 #include <unistd.h>
      3 
      4 static void *th(void *v)
      5 {
      6 	sleep(1);
      7 	pthread_exit(0);
      8 }
      9 
     10 int main()
     11 {
     12 	pthread_t a;
     13 
     14 	pthread_create(&a, NULL, th, NULL);
     15 	pthread_create(&a, NULL, th, NULL);
     16 	pthread_create(&a, NULL, th, NULL);
     17 	pthread_create(&a, NULL, th, NULL);
     18 
     19 	pthread_exit(0);
     20 }
     21