Home : Course Map :
Chapter 8: Threads
JavaTech
Course Map

Introduction
Threads Overview
  Demo 1   Demo 2
Stopping Threads
Multi-Processing
Thread Tasks
Animations
 
 Demo 3   Demo 4  
  Demo 5

Non-interacting
  Demo 6

Task Splitting
  Demo 7

Exclusivity
  Demo 8

Communicating
  Demo 9

Priority/Scheduling
More Thread

Exercises

    Supplements
Java2D Animation
  Demo 1 
Processor View
More Concurrency
Cloning
  Demo 2  Demo 3 

     About JavaTech
     Codes List
     Exercises
     Feedback
     References
     Resources
     Tips
     Topic Index
     Course Guide
     What's New

This chapter concentrates mostly on threads, which are sub-processes that run within a Java program.

Java

Supplements

  • Java2D Animation - use the Java2D graphics techniques to do an animation example.
  • Threads in the processor - a cartoon view of how multiple processes appear to run simultaneously on a single processor.
  • Cloning - making copies of objects

Tech

We use thread techniques to illustrate several enhancements to our histogram classes. We also look at sorting tools in Java.

  • Timers - the Java core language comes with two different timer classes for running tasks after a given delay and periodically if needed.
  • Histogram with Adaptable Range - create a histogram whose limits can expand to include new data values outside the current lower/upper range limits.
  • Sorting in Java - Java also comes with tools to sort arrays and collections.
  • Histogram Median - use sort tool to obtain the median of a distribution.
  • Refactoring  - reorganize class design and heirarchies as they grow and multiply.
  • Error Bars  - offer the option of displaying the histogram as points with error bars rather than vertical bars.
  • Exercises

Physics

We continue the development of some numerical analysis techniques (least squares fits) and then look at the issues of discrete approximations and animation timing and how they affect simulations.

 

              Tech
Timers
  Demo 1
Hist. Adapt Range
  Demo 2
Sorting in Java
  Demo 3
Histogram Median
  Demo 4
Refactoring
  Demo 5
Error Bars
  Demo 6
Exercises

           Physics
Least Squares Fit
  Demo 1
Fit to Polynomial
  Demo 2
Fit Hist Errors
  Demo 3
Discretization
  Demo 4
Timing
  Demo 5
Exercises

  Part I Part II Part III
Java Core 1  2  3  4  5  6  7  8  9  10  11  12 13 14 15 16 17
18 19 20
21
22 23 24
Supplements

1  2  3  4  5  6  7  8  9  10  11  12

Tech 1  2  3  4  5  6  7  8  9  10  11  12
Physics 1  2  3  4  5  6  7  8  9  10  11  12

Java is a trademark of Sun Microsystems, Inc.