How to execute a script from another script and other script does notdo busy wait.
Jan Kaliszewski
zuo at chopin.edu.pl
Thu Jan 7 15:18:27 EST 2010
More information about the Python-list mailing list
Thu Jan 7 15:18:27 EST 2010
- Previous message (by thread): How to execute a script from another script and other script doesnotdo busy wait.
- Next message (by thread): How to execute a script from another script and other script does not do busy wait.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Rajat <rajat.dudeja at gmail.com> wrote: > 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() > in script2. > That way, script1 would still be waiting for script2 to finish. Single CPU is not a problem for threads (in fact it's even better). It'll work. Try it. Another possibility is to run script2 in a separate process (e.g. using subprocess module). Cheers, *j
- Previous message (by thread): How to execute a script from another script and other script doesnotdo busy wait.
- Next message (by thread): How to execute a script from another script and other script does not do busy wait.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list