Lines Matching +full:pseudo +full:- +full:random
2 * Copyright (c) 2011-2016 Wind River Systems, Inc.
4 * SPDX-License-Identifier: Apache-2.0
83 /* end - control behaviour of the demo */
123 * The random delay is unit-less, and is based on the philosopher's ID in get_random_delay()
124 * and the current uptime to create some pseudo-randomness. It produces in get_random_delay()
137 return id == (NUM_PHIL - 1); in is_last_philosopher()
188 return -(phil - (NUM_PHIL/2)); in new_prio()
192 return -phil - 2; in new_prio()
213 * create two coop. threads (prios -2/-1) and four preemptive threads in start_threads()
214 * : (prios 0-3) in start_threads()
238 "----------------\n" \
240 "problem (a classic multi-thread synchronization problem).\n" \