1.. _hello_world_user: 2 3Hello World 4########### 5 6Overview 7******** 8A simple Hello World example that can be used with any supported board and 9prints 'Hello World from UserSpace!' to the console. 10If unavailable or unconfigured then 'Hello World from privileged mode.' 11is printed instead. 12 13This application can be built into modes: 14 15* single thread 16* multi threading 17 18Building and Running 19******************** 20 21This project outputs 'Hello World from UserSpace!' to the console. 22It can be built and executed on QEMU as follows: 23 24.. zephyr-app-commands:: 25 :zephyr-app: samples/userspace/hello_world_user 26 :host-os: unix 27 :board: qemu_riscv32 28 :goals: run 29 :compact: 30 31Sample Output 32============= 33 34.. code-block:: console 35 36 Hello World from UserSpace! qemu_riscv32 37 38Exit QEMU by pressing :kbd:`CTRL+A` :kbd:`x`. 39