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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top