Multithreading

Background Concepts

Concurrency within a program

Thread States

Priorities

Creating Threads

Synchronization

Thread Synchronization is the coordination of access to shared data by multiple concurrent threads. Typically handled with locks, to implement mutual exclusion when threads are sharing resources. class ArrayBlockingQueue -- nice pre-packaged implementation of a circular buffer (as a shared resource) for use with producer/consumer relationships (like client/server applications, for example).

Deitel Examples