Being a mechanical engineer I have some trouble understanding some of the principles in this whole message and semaphore system.
I am currently working on a robotics project using a teensy 3.6 and plan to use cocoOS for programming.
I have read some articles (mainly wikipedia) about multi tasking and what messages and semaphores are, but yet the whole principle is probably too abstract for me, not having the background of an actual programmer (especially in µc programming).
Could it cause problems to use global variables to communicate between different tasks instead of messages? How are semaphores used in general?
Are there any good ressources, preferably cocoOS samples, for seeing messages and semaphores "in action"?