We are working on an embedded system on which several tasks have to be performed simultaneously. We were abel to create threads that run in parallel.
Everyone tells us that global variables are bad. But how can we share data between two threads without using them? Is there an easy freamework with an example how to share data between threads?
We would also like to share an “event” between the main program and a thread to get feedback when a thread has finished initialisation.