I’m trying to use message queue in Linux, is it possible to do the below
process 1 has message queue named one
producer 1 & 2 send message to one with no lock mechanism, is that ok ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Sys V message queues provide priority, so that a particular queue recipient can be specified and can get messages “aimed” at it. With no contention. Queue readers can access any message as well depending on the mtype value in
msgrcv(). POSIX message queues are a little different. Generally you can employ Sys V queues without having to worry about locking resources. Sys V semaphores queues and shared memory do have some downsides as well. Like the fact that they are kernel persistent.Try
http://beej.us/guide/bgipc/