[Tutor] best way to run several processes over and over
shawn bright
nephish at gmail.com
Fri Dec 5 19:05:38 CET 2008
Hey all.
I have a rather large app that uses 14 threads that all run at the same time.
i use threading.Thread().start() to set them off.
each one runs somthing like this
def run():
while 1:
do a bunch of stuff
time.sleep(60)
i have the option i guess of having fewer threads, and just calling an
outside script for some of the actions, like this
def run():
while 1:
do a bunch of stuff
time.sleep(60)
os.system("run_other_scripts.py")
Does one have an advantage over the other?
thanks
shawn
More information about the Tutor
mailing list