MQX data sharing

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MQX data sharing

1,293 次查看
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 项奖励
回复
1 回复

767 次查看
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 项奖励
回复