Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Threading Or Other Suggestions?!?

Reply
Thread Tools

Threading Or Other Suggestions?!?

 
 
andrea.gavana@agip.it
Guest
Posts: n/a
 
      01-14-2005
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/


 
Reply With Quote
 
 
 
 
Aahz
Guest
Posts: n/a
 
      01-14-2005
In article <mailman.699.1105699485.22381.python->,
<> 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 () <*> http://www.pythoncraft.com/

"19. A language that doesn't affect the way you think about programming,
is not worth knowing." --Alan Perlis
 
Reply With Quote
 
 
 
 
chrisg
Guest
Posts: n/a
 
      01-15-2005
You could also use os.spawnl to launch it in a separate process.

 
Reply With Quote
 
Tim Roberts
Guest
Posts: n/a
 
      01-15-2005
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,
Providenza & Boekelheide, Inc.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: threading in PyQt vs threading in standard library Steven Woody Python 0 01-09-2009 07:48 AM
threading in PyQt vs threading in standard library Steven Woody Python 0 01-09-2009 07:15 AM
Cooperative threading preemptive threading - a bit confused failure_to@yahoo.co.uk Java 9 12-29-2007 01:10 AM
Command to send messages to the other user who is in other line on Cisco Router Chennak Cisco 1 10-28-2005 10:33 AM
What other produces other than "PC Anywhere"? JnlSeb Computer Information 4 01-08-2004 06:12 PM



Advertisments