Table of Contents
System Structuring with Threads
Example: A Transcoding Web Proxy Appliance
Using Threads to Structure the Proxy Server
Thread Family Tree for the Proxy Server
Periodic Threads and Timers
Interfacing with the Network
Network Reception
Inter-Thread Messaging with Send/Receive
Request/Response with Send/Receive
The Need for Multiple Service Threads
Using Ports for Multithreaded Servers
Producer/Consumer Pipes
Forking and Joining Workers
A Serializer for Logging
Summary of “Paradigms” for Using Threads
Threads vs. Events
Review: Thread-Structured Proxy Server
Summary of “Paradigms” for Using Threads
Thread Priority
Keeping Your Priorities Straight
Multithreading: Pros and Cons
Alternative: Event-Driven Systems
Example: Unix Select Syscall
Event Notification with Upcalls
Example: Unix Signals
Handling Unix Signals
Summary
|
Author: Jeff Chase
Home Page: http://www.cs.duke.edu/~chase/cps110
|