07.01.2013 Views

David Defour - Université de Perpignan

David Defour - Université de Perpignan

David Defour - Université de Perpignan

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Motivation for Concurrent<br />

Programming<br />

• Pros<br />

–Advantages even on single-processor systems<br />

• Efficiency<br />

– Downloading image files<br />

• Convenience<br />

– A clock icon<br />

• Responsiveness<br />

– If you block the main thread, event handlers will not respond<br />

–Some <strong>de</strong>vices have multiple cpus or cores<br />

• Find out via Runtime.getRuntime().availableProcessors()<br />

• Cons<br />

685<br />

jeudi 26 janvier 12<br />

–Significantly har<strong>de</strong>r to <strong>de</strong>bug and maintain than single-<br />

threa<strong>de</strong>d apps

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

Saved successfully!

Ooh no, something went wrong!