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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:29:07+00:00 2026-05-23T18:29:07+00:00

Alright I will attempt to explain every aspect of why I need to do

  • 0

Alright I will attempt to explain every aspect of why I need to do this a certain way. Basically, I need an application to execute a certain .exe multiple times asynchronously.
Specs:

  • I need to be able to restrict the amount of executions going at one time.
  • It has to use threading because my program has a GUI and simply launching the .exe’s and monitoring them will lock up the .GUI AND the console for other things.

How should I go about doing this? (examples help me a lot)

  • 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-23T18:29:08+00:00Added an answer on May 23, 2026 at 6:29 pm

    UPDATE
    Actually this wasn’t a great answer. As Henk pointed out in my comments, when you call Process.Start() that’s not a blocking call. You have to explicitly set Process.EnableRaisingEvents to true, and handle the Exited event. I’m not sure if the Exited event is fired in the calling thread (I doubt it, but you should check), but the point is starting a process isn’t a blocking call, so you don’t need more threads doing the waiting.

    See this similar answer for more details: Async process start and wait for it to finish

    PREVIOUS ANSWER
    Fire off your threads (limited to your max number of threads), and have them run the external exe using the Process.Start() method. Make sure you set them to wait for the process to finish. When the processes finish, have the threads use something like Interlocked.Increment() to increment a counter variable that you can read from your main form code. Better still, have those threads call a callback delegate (e.g. Action<T>), which will in turn check for this.InvokeRequired before doing the actual work.

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

Sidebar

Related Questions

Alright, I am not entirely sure if I will explain this sufficiently, but here
Alright so i need to open a .txt file that will be created in
Alright so I have no idea how to even begin doing this But basically
Alright, this will probably sound a bit silly. The more I think about it,
Alright so I need to constantly monitor multiple routers and computers, to make sure
Alright, I will try to make this is as simple as possible, without being
Alright. Hopefully this will be my last post about the download manager I am
Alright, so here is what I'm hoping for... Any request to this http://www.fileorchard.com/3451928347592 will
alright so I'm trying to set up a keydown dispatcher that will do different
Alright I don't see why this isnt working. It seems pretty simple. Here is

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.