how to achieve task deletion & priority inversion

Status
Not open for further replies.

mandy_999

Newbie level 2
Joined
Jun 25, 2009
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,295
priority inversion and semaphore deletion

hello friends

I am using binary semaphore in my project.
i want to achieve 2 things
1) i want to provide task deletion safety
2) i want to protect against the priority inversion problem.

I can achieve this using mutual exclusion semaphore using options such as SEM_INVERSION_SAFE & SEM_DELETE_SAFE
these options are not supported by binary semaphore
BUT I WANT TO achieve this using binary semaphore because mutual exclusion semaphore does not support task synchronisation.

Can any one tell me how to achieve this using binary semaphore
 

A mutex is a binary semaphore that prevents priority inversion. So it should do what you want. It is main function is mutual exclusion and task synchronization.
Which RTOS do you use?
Can you share your code.
--
Amr Ali
www.embedded-tips.blogspot.com
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…