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
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to