How to execute a script from another script and other script does notdo busy wait.
rajat.dudeja at gmail.com
Thu Jan 7 12:19:19 CET 2010
On Jan 7, 2:21 pm, "VYAS ASHISH M-NTB837" <ashish.v... at motorola.com>
> Use threads
> Ashish Vyas
> -----Original Message-----
> From: python-list-bounces+ntb837=motorola.... at python.org
> [mailto:python-list-bounces+ntb837=motorola.... at python.org] On Behalf Of
> Sent: Thursday, January 07, 2010 2:42 PM
> To: python-l... at python.org
> Subject: How to execute a script from another script and other script
> does notdo busy wait.
> I want to run a python script( aka script2) from another python script
> (aka script1). While script1 executes script2 it waits for script2 to
> complete and in doing so it also does some other useful work.(does not
> do a busy wait).
> My intention is to update a third party through script1 that script2 is
> going to take longer.- Hide quoted text -
> - Show quoted text -
I've single CPU machine. I've a feeling that the thread created, which
would run script2, would eat up all of the CPU if I do not use sleep()
That way, script1 would still be waiting for script2 to finish. Thus,
my program is no way different from the sample program I posted
Is there any other way out?
More information about the Python-list