MQX data sharing

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MQX data sharing

1,312件の閲覧回数
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 返信

786件の閲覧回数
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 件の賞賛
返信