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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T16:41:22+00:00 2026-05-29T16:41:22+00:00

I understand the following is the typical code to launch an exe from java

  • 0

I understand the following is the typical code to launch an exe from java

Runtime rt = Runtime.getRuntime();
Process proc = rt.exec("some.exe"); 

or with parameter

Process process = new ProcessBuilder("some.exe","param1","param2").start();

I have a web application which wraps an exe and users can execute these on request. As I understand the above two approaches will always create a new process on every request. I want to avoid this.

Is there way, wherein I keep a pool of reusable loaded instances and use them in the typical concurrent scenario. I want avoid a situation wherein each user request launches a new process.

  • 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-29T16:41:27+00:00Added an answer on May 29, 2026 at 4:41 pm

    That depends on whether some.exe supports this. For example, the command ls (or dir) does its thing and stops. There is no way to tell it “do it again” – you need a way to communicate with the process and the process must have some interface (usually stdio) which you can use to remote control it.

    If your external process can’t do it, then you must create a new process per request or you must run the process somewhere else and keep the results in a cache for some time, so several user requests get the same data without you having to run the process.

    So if you get 100 requests per user and minute and it’s okay for the data to be one minute old, then you could run the process once per minute and reuse the old results.

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

Sidebar

Related Questions

I don't understand the following code on page 87 of Practical Django Projects: from
Could anyone help me to understand following line of code: sol< ?=f((1<< n)-1,i,0)+abs(P[i])*price; I
I understand the following elements : there is some sort of crawling (configured in
I don't understand why the following code generates a warning. interface Generic<T> { }
I dont understand what would be the problem with the following code. It needs
if wrote the following code and do not understand why the trace returns false:
I have come across the following jQuery code but could not understand it. What
I understand the following Java outputs. public class EchoTestDrive { public static void main(String[]
I do not understand how following code works. Specifically, I do not understand using
I don't understand the following code: ruby-1.9.1-p378 > puts nil is false unless nil

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.