threads and sleep?
jeff.maitland at gmail.com
Mon Jul 4 21:36:16 CEST 2005
I am in the process of writing a multithreading program and what I was
wondering is a sleep command in an executing function will affect the
threads below it? Here is a basic example of what I mean.
temp_var = True
while temp_var == True:
t = threading.Thread( target = func1, args = "String") #note
this is probably non functional (example purposes for the question
temp_var = t.isAlive()
print "This line should display a lot"
so the question I was wondering is if the sleep will pause the t
thread as well as the main function or is the thread independat of the
main function sleep?
Thanks in advance.
More information about the Python-list