1 /* Test case by Permaine Cheung <pcheung@cygnus.com>. */
22 struct sched_param spresult1, sp1;
24 for (cnt = 0; cnt < 100; ++cnt)
26 printf ("Round %d\n", cnt);
28 pthread_create (&thread1, NULL, &sub1, NULL);
29 pthread_join (thread1, NULL);
31 istatus = pthread_getschedparam (thread1, &policy, &spresult1);
34 printf ("pthread_getschedparam returns: %d\n", istatus);
38 sp1.sched_priority = 0;
39 istatus = pthread_setschedparam (thread1, SCHED_OTHER, &sp1);
42 printf ("pthread_setschedparam returns: %d\n", istatus);