giomaca wrote on Monday, May 06, 2019:
Hello Everyone,
I’ve read discussions about shared variable between threads in different topics.
In each discussion I found that there are different ways to access to the shared variables. I understand that those ways are:
- semaphore
- mutex
- queue
In my application I have two threads: the first one thread writes a variable that has to be read from the second one thread.
Also in this case, has to be use one of the previous method to shared data?
Can someone help me to understand about sharing variable in my case?
Regards,
Giovanni.