1.. _zbus-hello-world-sample:
2
3Hello world sample
4##################
5
6Overview
7********
8This sample implements a simple hello world application using zbus to make the threads talk to each other.
9
10Building and Running
11********************
12
13This project outputs to the console.  It can be built and executed
14on QEMU as follows:
15
16.. zephyr-app-commands::
17   :zephyr-app: samples/subsys/zbus/hello_world
18   :host-os: unix
19   :board: qemu_x86
20   :goals: run
21
22Sample Output
23=============
24
25.. code-block:: console
26
27    D: Sensor sample started raw reading, version 0.1-2!
28    D: Channel list:
29    D: 0 - Channel acc_data:
30    D:       Message size: 12
31    D:       Observers:
32    D:       - my_listener
33    D:       - my_subscriber
34    D: 1 - Channel version:
35    D:       Message size: 4
36    D:       Observers:
37    D: Observers list:
38    D: 0 - Listener my_listener
39    D: 1 - Subscriber my_subscriber
40    D: START processing channel acc_data change
41    D: From listener -> Acc x=1, y=1, z=1
42    D: FINISH processing channel acc_data change
43    D: From subscriber -> Acc x=1, y=1, z=1
44    D: START processing channel acc_data change
45    D: From listener -> Acc x=2, y=2, z=2
46    D: FINISH processing channel acc_data change
47    D: From subscriber -> Acc x=2, y=2, z=2
48
49Exit QEMU by pressing :kbd:`CTRL+A` :kbd:`x`.
50