Threads - Chapter 13

3/9/01


Click here to start


Table of Contents

Threads - Chapter 13

Concurrent Programming Needs

The Implicit AWT Thread

PPT Slide

PPT Slide

PPT Slide

Creating Your Own Threads

PPT Slide

PPT Slide

Communication Between Threads

PPT Slide

PPT Slide

Synchronizing

A Critical Section

Context Switches and Races

synchronized

synchronized methods

Locks

Signal-Wait Synchronization

Producer-Consumer

PPT Slide

PPT Slide

PPT Slide

PPT Slide

PPT Slide

Monitors for Synchronizing

Condition Variables

Semaphores

Semaphore's signal and wait

Synchronization States

Sockets

Socket Overview

A Connected Server and Client

PPT Slide

PPT Slide

PPT Slide

PPT Slide

PPT Slide

PPT Slide

PPT Slide

PPT Slide

A Multithreaded Server

PPT Slide

PPT Slide

PPT Slide

PPT Slide

A Synchronized Statement

PPT Slide

PPT Slide

notifyAll()

Synchronization States

Deadlock

Resource Ordering

PPT Slide

Adding a resource number to each object, we can avoid deadlock and still have common code.

Encapsulating Synchronization

PPT Slide

Author: Charlie McDowell

Email: charlie@cs.ucsc.edu

Home Page: http://www.cse.ucsc.edu/~charlie