layout | title | parent |
---|---|---|
post |
3.4 Exercises |
3. Threads |
For solving the exercises I recommend you create your own folder inside zephyr-rtos-tutorial
which contains the following filetree.
.
└── my-exercises
├── threads
│ ├── thread-start
│ ├── thread-start-define
│ ├── thread-abort
│ ├── thread-sleep
│ ├── thread-suspend
│ └── thread-join
├── gpio
├── scheduling
├── debugging
├── interrupts
├── timers
├── mutexes
├── semaphores
├── logging
└── networking
- Use
k_thread_create()
to create a thread - Implement the following
- Output the following serial using
printk()
solution: exercises/threads/thread-start
- Same as previous, but this time using
K_THREAD_DEFINE
to create thread
solution: exercises/threads/thread-start-define
- Implement the following
- Output the following serial using
printk()
solution: exercises/threads/thread-abort
- Implement the following
- Output the following serial using
printk()
solution: exercises/threads/thread-sleep
- Implement the following
- Output the following serial using
printk()
solution: exercises/threads/thread-suspend
- Implement the following
- Output the following serial using
printk()
solution: exercises/threads/thread-join