Freescale Semiconductor
Freescale MQX™ Software Solutions General
Register  ·  Sign In  ·  Help
Jump to Page:   1
  Reply  

MQX data sharing
Options    Options  
sai bhargavi
Visitor
Posts: 8
Registered: 2009-05-15


sai bhargavi

Message 1 of 2

Viewed 77 times


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

2009-11-03 05:58 AM
  Reply  

Re: MQX data sharing   [ Edited ]
Options    Options  
JuroV Freescaler
Freescaler
Posts: 57
Registered: 2009-03-04


JuroV

Message 2 of 2

Viewed 72 times


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
2009-11-03 10:12 AM
Jump to Page:   1