mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-22 16:46:10 +00:00
The demo can be configured to use different object types for its synchronization: SEMAPHORES, MUTEXES, STACKS, FIFOS and LIFOS. To configure a specific object, set the value of FORKS to one of these. By default, the demo uses MUTEXES. The demo can also be configured to work with static objects or dynamic objects. The behaviour will change depending if STATIC_OBJS is set to 0 or 1. By default, the demo uses dynamic objects. The demo can be configured to work with threads of the same priority or not. If using different priorities, two threads will be cooperative threads, and the other four will be preemtible threads; if using one priority, there will be six preemtible threads of priority 0. This is changed via SAME_PRIO. By default, the demo uses different priorities. The number of threads is set via NUM_PHIL. The demo has only been tested with six threads. In theory it should work with less than six threads, but not with more without making changes to the forks[] array in the phil_obj_abstract.h header file. Change-Id: If7a0a34b216929a661245fd921a32ec413df8a4a Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com> |
||
---|---|---|
.. | ||
microkernel | ||
nanokernel | ||
unified |