MQX data sharing

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MQX data sharing

1,248 Views
saibhargavi
Contributor II

Hi All,

 

Good Morning!!! This Forum has been very useful for me to learn things better in MQX. I would like to thank all the members of this Forum who is helping me ..

 

I have one doubt related to data sharing in MQX. Say for example if we have a status input which is used by more than one tasks and these tasks continuosly uses that status variable for taking required actions then how do we handle this using MQX? To my mind i get that i should be using a global variable only which will be accessed by different tasks :-) .. Please pour out your suggestions reg the same.

 

Looking forward for your replies ASAP

 

Thanks and Regards

 

Sai Bhargavi

0 Kudos
Reply
1 Reply

722 Views
JuroV
NXP Employee
NXP Employee

Hi.

 

You just entered a big programmer's field called "thread synchronization". No other way than learning how lwevents, events, semaphores, lwsemaphores and mutexes work. You dont need to start with MQX reference manual- events, semaphores and mutexes are common synchronization objects in every operating system and the basic behavior is common. Use google and documents related to thread synchronization.

Message Edited by JuroV on 2009-11-03 11:30 AM
0 Kudos
Reply