CS 335/535 Web Programming - Java Multithread Programming
Overview of Thread Methods
threads allow you to do many things at the same time
public Thread()
public Thread(String threadName)
public class MyThread extends Thread
run
method can be overridden in a subclass of
Thread
or in a
Runnable
object
public class MyThread extends java.applet.Applet implements Runnable
Thread States: Life-Cycle of a Thread
Thread Priorities and Thread Scheduling (Thread.MIN_PRIORITY=1; Thread.NORM_PRIORITY=5; Thread.MAX_PRIORITY=10) [timeslicing]; ex.
PrintTest
Producer/Consumer Relationship without Thread Synchronization
Producer/Consumer Relationship with Thread Synchronization
Runnable Interface