07.01.2013 Views

David Defour - Université de Perpignan

David Defour - Université de Perpignan

David Defour - Université de Perpignan

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Nonresponsive GUI Controls<br />

• Problem<br />

–Long-running co<strong>de</strong> in main thread will make GUI controls<br />

nonresponsive.<br />

• For example, if a Button’s onClick handler takes 5 seconds, then<br />

none of the other controls will respond for 5 seconds.<br />

• Solution<br />

742<br />

jeudi 26 janvier 12<br />

–Move time-consuming operations to background threads<br />

• This was the entire point of the previous lecture on the basics of<br />

multithrea<strong>de</strong>d programming

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!