I’m browsing source codes from two applications sharing one queue using MSMQ. The first application has a thread that writes into the queue while the second application has another thread that reads from the queue. Ordinarily, if you’re implementing your own queue, the applications would need a mutex when accessing the queue, right? However, I could not find any mutex/critical section in the source codes of these applications. Did I just miss something? Or does MSMQ not need any mutex since it is handled internally, is there such thing?
I’m browsing source codes from two applications sharing one queue using MSMQ. The first
Share
The MSMQ documentation states that:
MSMQ.Send() is not inherently thread-safe.
From: Is Send() thread safe?