zephyr/samples
Benjamin Walsh aabf74cda5 Dining philosophers demo for unified kernel.
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>
2016-09-28 14:14:02 +00:00
..
bluetooth Merge bluetooth branch into master 2016-09-16 13:28:24 +03:00
cpp_synchronization boards: rename Quark SE Devboard to Quark SE C1000 (Sensor Subsystem) 2016-09-16 03:10:30 +00:00
drivers boards: remove obsolete board basic_minuteia 2016-09-22 22:09:34 +00:00
environmental_sensing boards: rename Quark SE Devboard to Quark SE C1000 2016-09-16 03:10:31 +00:00
hello_world boards: rename Quark SE Devboard to Quark SE C1000 (Sensor Subsystem) 2016-09-16 03:10:30 +00:00
ipm samples: remove unused MDEF file 2016-09-24 08:26:57 -04:00
kernel_event_logger boards: rename Quark SE Devboard to Quark SE C1000 (Sensor Subsystem) 2016-09-16 03:10:30 +00:00
net boards: remove obsolete board basic_minuteia 2016-09-22 22:09:34 +00:00
nfc/nfc_hello x86: remove dynamic interrupts and exceptions 2016-09-06 18:35:24 +00:00
philosophers Dining philosophers demo for unified kernel. 2016-09-28 14:14:02 +00:00
power power_mgmt: Update sample and drivers according to new pm device API 2016-09-22 00:23:43 +00:00
sensor boards: rename Quark SE Devboard to Quark SE C1000 2016-09-16 03:10:31 +00:00
shell boards: rename Quark SE Devboard to Quark SE C1000 (Sensor Subsystem) 2016-09-16 03:10:30 +00:00
static_lib samples/static_lib: Add testcase.ini 2016-08-04 18:31:12 +00:00
stub boards: rename Quark SE Devboard to Quark SE C1000 2016-09-16 03:10:31 +00:00
synchronization boards: rename Quark SE Devboard to Quark SE C1000 (Sensor Subsystem) 2016-09-16 03:10:30 +00:00
task_profiler boards: rename Quark SE Devboard to Quark SE C1000 2016-09-16 03:10:31 +00:00
usb boards: rename Quark SE Devboard to Quark SE C1000 2016-09-16 03:10:31 +00:00