Lines Matching +full:0 +full:x1b
19 * objects. The behavior will change depending if STATIC_OBJS is set to 0 or
27 * priority, there will be six preemptible threads of priority 0. This is
58 #define DEBUG_PRINTF 0
66 #define STATIC_OBJS 0
71 #if 0
80 #define SAME_PRIO 0
95 printk("\x1b[%d;%dH", id + 1, 1); in set_phil_state_pos()
107 id, prio < 0 ? "C" : "P", in print_phil_state()
108 prio < 0 ? "" : " ", in print_phil_state()
125 * a value between 0 and 31. in get_random_delay()
127 int32_t delay = (k_uptime_get_32()/100 * (id + 1)) & 0x1f; in get_random_delay()
129 /* add 1 to not generate a delay of 0 */ in get_random_delay()
152 my_fork1 = fork(0); in philosopher()
162 print_phil_state(my_id, " STARVING ", 0); in philosopher()
164 print_phil_state(my_id, " HOLDING ONE FORK ", 0); in philosopher()
172 print_phil_state(my_id, " DROPPED ONE FORK ", 0); in philosopher()
186 return 0; in new_prio()
204 for (int i = 0; i < NUM_PHIL; i++) { in init_objects()
214 * : (prios 0-3) in start_threads()
216 for (int i = 0; i < NUM_PHIL; i++) { in start_threads()
219 k_thread_create(&threads[i], &stacks[i][0], STACK_SIZE, in start_threads()
236 "\x1b[2J\x1b[15;1H" \
256 k_sched_time_slice_set(5000, 0); in main()
268 return 0; in main()