Quantcast
Channel: Forum - Recent Threads
Viewing all articles
Browse latest Browse all 5781

RE: message Queue failure modes when more then 64bytes sent

$
0
0

I would be careful with mutexes.

You can't avoid it sometimes for resource sharing

But depending on the task priorities which share the resource, you might get quickly into deadlocks if one gets hold of the item, and is switched out afterwards while still holding it.

If you run into issues, you might consider specifying its priority inheritance option

Or using the preemption threshold option for the threads (enabling it from ThreadX src options)

For such signalling / synchronizing, a semaphore is IMHO definitely more safe

Regards


Viewing all articles
Browse latest Browse all 5781

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>