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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T04:50:03+00:00 2026-06-01T04:50:03+00:00

I am currently trying to communicate a parent process which should have multiple children

  • 0

I am currently trying to communicate a parent process which should have multiple children process for each request, and wish to know how do I keep track of the number of children and check if any of the children have terminated?

I have tried using pipes to communicate by using the read() function to send back a message of termination. However, this somehow blocks all concurrency and waits for 1 child to complete and send back the termination message before handling the next process requests.

Is there a way to solve this? Or do I have to use methods like shared memory, sockets, etc…?

I am using C language, and I just need a way tracking how many children I have. I can increment a counter in the parent process, but when a child dies? how do get that message back and use it to decrement the counter in the parent?

  • 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-06-01T04:50:04+00:00Added an answer on June 1, 2026 at 4:50 am

    On POSIX-compliant platforms, If you just wish to know when the child process exits and nothing else then you can use SIGCHLD signal.
    SIGCHLD is the signal sent to a process when a child process terminates, You can handle it by writing your own signal handler. Its return value is the process id of the child process which exits.

    If you need to communicate between parent and child processes on a regular basis during the course of program execution then you will have to use some sort of Inter Process Mechanism(IPC), selection of which depends upon number of factors like performance,need of synchronization,need of serial communication etc.

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

Sidebar

Related Questions

I am currently working on 2 .NET apps which must communicate with each other.
I have written a game in PlayN, which has to communicate with a JavaEE-Server
I am currently trying to figure out a way to have an Android application
We are currently designing a system using WPF which will communicate with other systems
I have a cash register I am trying to communicate with from C# (I
Is it possible to have PHP communicate with WSE3.0 (microsoft). I know it runs
Currently trying at add ajax to a site, after much reading I discovered that
Im currently trying to downlaod a audio track from a WCF, i need some
Im currently trying to learn some stuff about encryption, it's algorithms and how it
I'm currently trying to add an MSChart to a partial view in ASP.NET MVC

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.