mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-14 07:35:21 +00:00
Change-Id: I9efe25dbc808c635d895ffe2893afb68f4088ad1 Signed-off-by: Anas Nashif <anas.nashif@intel.com> |
||
---|---|---|
.. | ||
src | ||
Makefile | ||
prj.conf | ||
README.rst | ||
sample.tc | ||
testcase.ini |
Synchronization Sample ###################### Overview ======== A simple application that demonstates basic sanity of the kernel. Two threads (A and B) take turns printing a greeting message to the console, and use sleep requests and semaphores to control the rate at which messages are generated. This demonstrates that kernel scheduling, communication, and timing are operating correctly. Building and Running ==================== This project outputs to the console. It can be built and executed on QEMU as follows: .. code-block:: console $ cd samples/synchronization $ make qemu Sample Output ------------- .. code-block:: console threadA: Hello World! threadB: Hello World! threadA: Hello World! threadB: Hello World! threadA: Hello World! threadB: Hello World! threadA: Hello World! threadB: Hello World! threadA: Hello World! threadB: Hello World! <repeats endlessly>