Apr24 - CSE262: Programming Languages Instructor: Dr. Liang...

Info iconThis preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon
CSE262: Programming Languages Instructor: Dr. Liang Cheng Department of Computer Science and Engineering Lehigh University April 24, 2007
Background image of page 1

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

View Full DocumentRight Arrow Icon
Instructor: Dr. Liang Cheng CSE262: Programming Languages 04/24/07 Outline ± Recap ± Concurrency (Chapter 13) ± Summary
Background image of page 2
Instructor: Dr. Liang Cheng CSE262: Programming Languages 04/24/07 Introduction ± Real-world situations involve concurrency ± Computers capable of physical concurrency are now widely used ± Machine instruction level ± High-level language statement level ± Program unit level: tasks ± Program level
Background image of page 3

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

View Full DocumentRight Arrow Icon
Instructor: Dr. Liang Cheng CSE262: Programming Languages 04/24/07 States of Tasks ± Task invoker does not need to wait for the task completion ± Execution states of tasks 1. New - created but not yet started 2. Runnable or ready - ready to run but not currently running (no available processor) 3. Running 4. Blocked - has been running, but cannot now continue (usually waiting for some event to occur) 5. Dead - no longer active in any sense
Background image of page 4
Instructor: Dr. Liang Cheng CSE262: Programming Languages 04/24/07 State Diagram of Java Thread
Background image of page 5

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

View Full DocumentRight Arrow Icon
Instructor: Dr. Liang Cheng CSE262: Programming Languages 04/24/07 Implementing Tasks in Java ± Two ways to define a class with a run method ± As a subclass of Thread class ± Implement the Runnable interface
Background image of page 6
Instructor: Dr. Liang Cheng CSE262: Programming Languages 04/24/07 Introduction to Program-unit
Background image of page 7

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

View Full DocumentRight Arrow Icon
Image of page 8
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 08/06/2008 for the course CSE 262 taught by Professor Cheng during the Spring '07 term at Lehigh University .

Page1 / 23

Apr24 - CSE262: Programming Languages Instructor: Dr. Liang...

This preview shows document pages 1 - 8. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online