Lines Matching full:threads
24 * The demo can be configured to work with threads of the same priority or
25 * not. If using different priorities, two threads will be cooperative
26 * threads, and the other four will be preemptible threads; if using one
27 * priority, there will be six preemptible threads of priority 0. This is
32 * The number of threads is set via NUM_PHIL. The demo has only been tested
33 * with six threads. In theory it should work with any number of threads, but
213 * create two coop. threads (prios -2/-1) and four preemptive threads in start_threads()
219 k_thread_create(&threads[i], &stacks[i][0], STACK_SIZE, in start_threads()
226 k_thread_name_set(&threads[i], tname); in start_threads()
228 k_object_access_grant(fork(i), &threads[i]); in start_threads()
229 k_object_access_grant(fork((i + 1) % NUM_PHIL), &threads[i]); in start_threads()
231 k_thread_start(&threads[i]); in start_threads()
242 "preemptible and cooperative threads of differing priorities, as\n" \