{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Threads - CMSC 132 Object-Oriented Programming II Threads...

Info icon This preview shows pages 1–10. Sign up to view the full content.

View Full Document Right Arrow Icon
1 CMSC 132: Object-Oriented Programming II Threads in Java Department of Computer Science University of Maryland, College Park
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
2 Problem Multiple tasks for computer Draw & display images on screen Check keyboard & mouse input Send & receive data on network Read & write files to disk Perform useful computation (editor, browser, game) How does computer do everything at once? Multitasking Multiprocessing
Image of page 2
3 Multitasking (Time-Sharing) Approach Computer does some work on a task Computer then quickly switch to next task Tasks managed by operating system (scheduler) Computer seems to work on tasks concurrently Can improve performance by reducing waiting
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
4 Multitasking Can Aid Performance Single task Two tasks
Image of page 4
5 Multiprocessing (Multithreading) Approach Multiple processing units ( multiprocessor ) Computer works on several tasks in parallel Performance can be improved 4096 processor Cray X1 32 processor Pentium Xeon Dual-core AMD Athlon X2 Beowulf computer cluster (Borg, 52- node cluster used by McGill University Image/Info from Wikipedia )
Image of page 5

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon