开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜