Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7629409
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:49:40+00:00 2026-05-31T05:49:40+00:00

I am working on a message queue used to communication among process on embedded

  • 0

I am working on a message queue used to communication among process on embedded Linux. I am wondering why I’m not using the message queues provided by Linux as following:

msgctl, msgget msgrcv, msgsnd.

instead of creating shared memory, and sync up with semaphore?

What’s the disadvantage of using this set of functions directly on a business embedded product?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T05:49:41+00:00Added an answer on May 31, 2026 at 5:49 am

    The functions msgctl(), msgget(), msgrcv(), and msgsnd() are the ‘System V IPC’ message queue functions. They’ll work for you, but they’re fairly heavy-weight. They are standardized by POSIX.

    POSIX also provides a more modern set of functions, mq_close(), mq_getattr(), mq_notify(), mq_open(), mq_receive(), mq_send(), mq_setattr(), and mq_unlink() which might be better for you (such an embarrassment of riches).

    However, you will need to check which, if either, is installed on your target platforms by default. Especially in an embedded system, it could be that you have to configure them, or even get them installed because they aren’t there by default (and the same might be true of shared memory and semaphores).

    The primary advantage of either set of message facilities is that they are pre-debugged (probably) and therefore have concurrency issues already resolved – whereas if you’re going to do it for yourself with shared memory and semaphores, you’ve got a lot of work to do to get to the same level of functionality.

    So, (re)use when you can. If it is an option, use one of the two message queue systems rather than reinvent your own. If you eventually find that there is a performance bottleneck or something similar, then you can investigate writing your own alternatives, but until then — reuse!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using boost::thread to process messages in a queue. When a first message
I'm working with message queues in c#. I'm sending messages to a queue from
I am trying to display some message in span. but it is not working.
I wanna write <Message Text=Line1\nLine2\nLine3 /> but \n seems not to be working. What
This program is not giving Queue Overflow error message when its full. Why is
What message queues are people using for their Rails apps and what was the
I am working on a java message queue client (beanstalk) and right now my
I'm working on a script that listens to a message queue. The only problem
I'm working on a multiplayer game and it needs a message queue (i.e., messages
I just ran across this error message while working in C# A property or

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.