Need help with multithreading

  • Thread starter Thread starter news.videotron.ca
  • Start date Start date
N

news.videotron.ca

Hi,

What is the most efficeint way to wait for a thread to end without freezing
the calling thread. I tried Thread.Join method but it freeze the UI.

The concept of multithreading is relativly new to me so any help will be
greatly appreciated.

Thanks.
 
Hi News,

I would not say efficient, because it cost some tikcs, but the simplest way
is to let the UI not freeze is in your parent class from the thread,

While threadNotReadyFlag
threading.thread.sleep(50)
application.doevents
loop
 
Back
Top