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

  • Home
  • SEARCH
  • 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 8580711
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T20:53:09+00:00 2026-06-11T20:53:09+00:00

I have two C++ applications: calc – computationally intensive, reads config from a file

  • 0

I have two C++ applications:

  1. calc – computationally intensive, reads config from a file

  2. ui – provides user friendliness. Transforms the choices the user makes in a UI into a config, launches calc and when calc finishes, displays the results.

I would like in ui to launch several instances of calc and wait for all of them to finish, then process the results of all. The question is, how can I wait for 8 simultaneously launched processes to finish? I googled around a bit but reached no conclusion. spanwl with P_NOWAIT seemed promising, but there seems to be no easy (“built-in”) way of seeing whether the process has already finished.

Any help is much appreciated,
Daniel

  • 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-11T20:53:10+00:00Added an answer on June 11, 2026 at 8:53 pm

    If you create the processes by calling CreateProcess, you will get back a process handle that you can wait on. To wait on multiple handles at once, use WaitForMultipleObjects function. This function has a limit – it can only wait for MAXIMUM_WAIT_OBJECTS (which was 64 for XP, not sure what it’s in Win7) handles at a time.

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

Sidebar

Related Questions

I have two applications Web Socket and Web Service created in .Net/Web Form and
I have two applications: c++ service and a RoR web server (they are both
I have two applications in my project 'test' the applications are one.mxml and two.mxml
public enum ObjectType { Country=0, Region=1, Province=2, City=3, Hotel=4 } I have two applications
I have two Android applications with a similar functionality but different drawables and layouts.
I have two separated applications, one written in Java and other in Erlang. Both
I have two .NET applications that talk to each other over a named pipe.
I have two desktop applications. After closing the first application, the first application will
I have two different applications and I am using GroupLab Networking to communicate between
I have two web applications in the same solution. They both use different membership/profile

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.