Lines Matching refs:thread
11 * 1. Create a high nice thread and a low nice thread, the main
12 * thread wake them at the same time
14 * 3. Verify that the low nice thread executes more time than
15 * the high nice thread
108 pthread_t thread[2];
112 SAFE_PTHREAD_CREATE(&thread[0], NULL, thread_fn,
114 SAFE_PTHREAD_CREATE(&thread[1], NULL, thread_fn,
121 TEST(pthread_getcpuclockid(thread[1], &nice_low_clockid));
125 TEST(pthread_getcpuclockid(thread[0], &nice_high_clockid));
132 tst_res(TINFO, "Nice low thread CPU time: %ld.%09ld s",
134 tst_res(TINFO, "Nice high thread CPU time: %ld.%09ld s",
140 "the high nice thread, delta: %lld ns", delta);
143 "the high nice thread, delta: %lld ns", delta);
146 SAFE_PTHREAD_CANCEL(thread[0]);
147 SAFE_PTHREAD_CANCEL(thread[1]);
149 SAFE_PTHREAD_JOIN(thread[0], NULL);
150 SAFE_PTHREAD_JOIN(thread[1], NULL);