The code of the listings below shows a more complete example and contains three tasks: a mutual exclusion, semaphore, and a message queue.
The listing below shows the C entry point, i.e. main()
.
The listing below shows how to create other tasks once multitasking as started.