Should mutexes be used to ensure concurrency, while using POSIX message queues?
I am using a single POSIX message queue in m开发者_如何学Goy application which is accessed by multiple readers. Should I use mutexes in this scenario?
This is similar to Is msgsnd() thread- and/or process-safe? . The short answer is - it's already thread-safe, so there's no need to use mutexes.
精彩评论