2 #cc: additional_flags=-pthread
5 To test sched_yield in the presencs of threads. Core from ex1.c. */
17 for (i = 0; i < 10; i++)
19 if (sched_yield () != 0)
32 retcode = pthread_create (&th_a, NULL, process, (void *) "a");
35 retcode = pthread_create (&th_b, NULL, process, (void *) "b");
38 retcode = pthread_join (th_a, &retval);
41 retcode = pthread_join (th_b, &retval);