Lines Matching +full:round +full:- +full:robin
1 /*-
2 * SPDX-License-Identifier: BSD-4-Clause
4 * Copyright (c) 1996 - 2000
18 * 4. Neither the name of the author nor the names of any co-contributors
56 /* Fifo: Verify that fifo and round-robin scheduling seem to work.
60 * 2. That FIFO scheduling doesn't seeem to be round-robin;
61 * 3. That round-robin scheduling seems to work.
77 sdiff = a->tv_sec - b->tv_sec; in tvsub()
78 udiff = a->tv_usec - b->tv_usec; in tvsub()
97 /* What is the round robin interval? in fifo()
100 if (sched_rr_get_interval(0, &interval) == -1) { in fifo()
112 PROT_READ|PROT_WRITE, MAP_ANON|MAP_SHARED, -1, 0); in fifo()
114 if (p == (long *)-1) in fifo()
119 if (sched_setscheduler(0, SCHED_FIFO, &fifo_param) == -1) in fifo()
122 return -1; in fifo()
146 /* Set an alarm for 250 times the round-robin interval. in fifo()
156 if (setitimer(ITIMER_REAL, &itimerval, 0) == -1) { in fifo()
169 e = -1; in fifo()
180 tvsub(ranat + j, ranat + j - 1)); in fifo()
185 /* Switch to the round robin scheduler and the child in fifo()
188 if (sched_setscheduler(child, SCHED_RR, &fifo_param) == -1 || in fifo()
189 sched_setscheduler(0, SCHED_RR, &fifo_param) == -1) in fifo()
192 return -1; in fifo()
195 e = -1; in fifo()
206 if (setitimer(ITIMER_REAL, &itimerval, 0) == -1) { in fifo()