473,413 Members | 1,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 software developers and data experts.

Threading Or Other Suggestions?!?

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.

------------------------------------------------------------------------------------------------------------------------------------------
Message for the recipient only, if received in error, please notify the
sender and read http://www.eni.it/disclaimer/
Jul 18 '05 #1
3 918
In article <ma**************************************@python.o rg>,
<an***********@agip.it> wrote:

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.
--
Aahz (aa**@pythoncraft.com) <*> http://www.pythoncraft.com/

"19. A language that doesn't affect the way you think about programming,
is not worth knowing." --Alan Perlis
Jul 18 '05 #2
You could also use os.spawnl to launch it in a separate process.

Jul 18 '05 #3
an***********@agip.it wrote:

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.
--
- Tim Roberts, ti**@probo.com
Providenza & Boekelheide, Inc.
Jul 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

77
by: Jon Skeet [C# MVP] | last post by:
Please excuse the cross-post - I'm pretty sure I've had interest in the article on all the groups this is posted to. I've finally managed to finish my article on multi-threading - at least for...
8
by: Z D | last post by:
Hello, I'm having a strange problem that is probably due to my lack of understanding of how threading & COM Interop works in a WinForms.NET application. Here's the situation: I have a 3rd...
11
by: Steve | last post by:
I'm having a problem with my Thread usage and I think the general design of how I'm working with them. My UI class calls a method in another class that does a lot of work. That "worker" class...
2
by: akameswaran | last post by:
Admittedly this problem causes no actual functional issues aside from an occasional error message when the program exits. The error is: Unhandled exception in thread started by Error in...
5
by: bean330 | last post by:
Hey, I'm somewhat new to C# and I need a little help, please! I'm selecting a bunch of records, setting properties on a COM executable and then calling a method on that executable to run. I...
5
by: George Maicovschi | last post by:
As multi-threading is not built in PHP I've been using a hack letting the Apache server handle the multi-threading issues, but I'm really curious of other approaches to this issue. If anyone has...
5
by: skunkwerk | last post by:
i'm getting the wrong output for the 'title' attributes for this data. the queue holds a data structure (item name, position, and list to store results in). each thread takes in an item name and...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.