Click here to start

Table of contents

Java Lab

What is thread?

Thread Example

PowerPoint Presentation

Two Threads

Code

Slide 7

Life Cycle of the thread

Creating a Thread

Creating a Thread (cont)

Starting a Thread

Starting a Thread (cont)

Run Thread

Run Thread (cont)

Making a Thread Not Runnable

Call back not runnable

Stopping a Thread

Slide 18

Restarting A Thread

The isAlive Method

Thread priority

Thread Priority (cont)

Slide 23

Slide 24

Tread Priority (cont)

Slide 26

Slide 27

Questions

Answers

Lab work

Lab work (cont)

Author: Sadi Evren SEKER

E-mail: shedai@shedai.net

Homepage: www.shedai.net

Further information:
This presentation is prepared for ICS 252 ppl lab hours in Yeditpe University Department of Information and Computer Sciences