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 7622097
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T04:21:59+00:00 2026-05-31T04:21:59+00:00

There are several processes and some threads in one process. All processes need to

  • 0

There are several processes and some threads in one process. All processes need to talk to each other. Threads in one process need to talk to the process(main threads). I am wondering if this design works:

  1. Every process has a msg queue (using msgget(), msgsnd, msgrcv() ) so that they can talk to each other by linux API.

  2. Every thread has a msg queue (also using msgget, msgsnd, msgrcv ) so that it can talk to the mainthread and other threads. So, this process in which threads are residing will have the process queue and threads’ queue, Is there any problem?

I am worrying about the item 2 since what I learn is that msgget, msgsnd, msgrcv are for inter process communication. I read manual about these functions. It looks like no mentioning about if these functions are supporting threads. In addition, could you please refer me to some best online Linux/Unix manual? I am not good at it since I feel it hard to find what I am looking for like, if a function or semaphore can support thread/manual. Stupid question, :).

Please help. Thanks.

  • 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-31T04:22:00+00:00Added an answer on May 31, 2026 at 4:22 am

    So, this process in which threads are residing will have the process queue and threads’ queue, Is there any problem?

    No there is no problem, Each message Queue is identified by a Queue Id which is unique and whoever, a thread or a process can provide this queue id can access the Message Queue.

    If it gives you any comfort, I have used message Queue’s for thread context switching flawlessly so be assured it works.


    It is usually best to just man on your unix/Linux installation but Since You asked for online resources, You can refer to the Online Linux Man pages for reference.

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

Sidebar

Related Questions

There are several ways to do this, but I'm not sure which one of
I have 3 processes which need to be synchronized. Process one does something then
There are several types of objects in a system, and each has it's own
There are several people about (myself being one of them) who have been developing
For some part of my project I need a process-local scheduling system that will
I've got several web-services: asmx,wcf. At couple of them there are some methods, which
Sorry if this is quite a long question, i need some advice on what
I have several different processes and I would like them to all log to
Now I want to create three processes in my program and there are several
Imagine I have a process that starts several child processes. The parent needs to

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.