Threads - Chapter 13
Concurrent Programming Needs
The Implicit AWT Thread
PPT Slide
Creating Your Own Threads
Communication Between Threads
Synchronizing
A Critical Section
Context Switches and Races
synchronized
synchronized methods
Locks
Signal-Wait Synchronization
Producer-Consumer
Monitors for Synchronizing
Condition Variables
Semaphores
Semaphore's signal and wait
Synchronization States
Sockets
Socket Overview
A Connected Server and Client
A Multithreaded Server
A Synchronized Statement
notifyAll()
Deadlock
Resource Ordering
Adding a resource number to each object, we can avoid deadlock and still have common code.
Encapsulating Synchronization
Email: charlie@cs.ucsc.edu
Home Page: http://www.cse.ucsc.edu/~charlie