[ciao-users] Question Events using ACE Framework, synchronization using mutexes]
getsoubl at gmail.com
Thu May 12 02:23:28 CDT 2016
HOST MACHINE and OPERATING SYSTEM:
Linux kernel 3.12.19, Powerpc - QoIrq processor
[Events using ACE Framework, synchronization using mutexes]
I have a question regarding synchronization using mutex in ACE framework.
Task A has been registered with a Timer Handler.
In Task A function foo is called.
A Critical Section in foo is protected using recursive mutexes.
The variables that are used by foo function ,are used (write/read) acces by
That means that we need to protect them.
We have the following piece of pseudocode
If the handle_timeout takes place before foo release the lock, will a
deadlock take place?
If another event with highest priority comes what happens?. Will we have a
context switch and the second event start processing?
How we protect event to not interrupt before complete their work?
Software Engineer @ Unify S.A
M.Sc. Degree in Computer Systems Technology, Kapodistrian & National
University of Athens
5-year Diploma in Computer Engineering, University of Thessaly
email: getsoubl at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ciao-users