theoretically, I think it's possible that the thread could finish running
before th.threadstate's value is actually tested, especially if the main
thread lost it's time slice right after th.start(). Also, I'm not sure if
chaning priorities has much effect on a thread that has already been
started, but that's just conjecture....
"IcedCrow" <ch********@aol.com> wrote in message
news:1d****************************@phx.gbl...
I have code:
Dim th as new threading.thread(addressof MyMethod)
th.start()
If th.threadstate = threadstate.running then
th.priority = threading.threadpriority.abovenormal
End If
My question is... wouldn't the thread always be running
and the if statement always fire off with setting the
priority?