Threading Or Other Suggestions?!?

A

andrea.gavana

Hello NG,

I have a wxPython application that does a lot of things. One of them,
in particular, I have doubts on how to implement it. Essentially, this part
of my application calls an external executable (an oil reservoir
simulator). What I would like to do, is to give the user the possibility to
run more than 1 simulation at the same time. This means:

1) Writing the executable "data file" needed by the simulator
2) Run the executable file (and wait until completion)
3) Examine the simulation results

For this, I was thinking about threads... does anyone have other/better
suggestion(s)? Does anyone see any difficulty/memory problems in using
threads?

Thanks to you all for every suggestion.

Andrea.
 
A

Aahz

I have a wxPython application that does a lot of things. One of them,
in particular, I have doubts on how to implement it. Essentially, this part
of my application calls an external executable (an oil reservoir
simulator). What I would like to do, is to give the user the possibility to
run more than 1 simulation at the same time. This means:

1) Writing the executable "data file" needed by the simulator
2) Run the executable file (and wait until completion)
3) Examine the simulation results

For this, I was thinking about threads... does anyone have other/better
suggestion(s)? Does anyone see any difficulty/memory problems in using
threads?

If you're not on Windows, this will be much easier with multiple
processes.
 
T

Tim Roberts

I have a wxPython application that does a lot of things. One of them,
in particular, I have doubts on how to implement it. Essentially, this part
of my application calls an external executable (an oil reservoir
simulator). What I would like to do, is to give the user the possibility to
run more than 1 simulation at the same time. This means:

1) Writing the executable "data file" needed by the simulator
2) Run the executable file (and wait until completion)
3) Examine the simulation results

For this, I was thinking about threads... does anyone have other/better
suggestion(s)? Does anyone see any difficulty/memory problems in using
threads?

Yes. Threads are used to run multiple parts of your own program. To run
another program, you need to launch a new process.

You can still monitor it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top