Monday, March 16, 2009

Unix - Syncronization and pthread Tutorial


Download ---pdf--Unix - Syncronization and pthread Tutorial

pthread Tutorial
Contents
Introduction
Creating and Destroying Threads
Creating Threads
Returning Results from Threads
Thread Synchronization
Mutual Exclusion
Condition Variables
Semaphores
Reader/Writer Locks
Thead Models
Boss/Worker Model
Pipeline Model
Background Task Model
Interface/Implementation Model
General Comments
Thread Safety
Levels of Thread Safety
Writing Thread Safe Code
Exception Safety vs Thread Safety


Rules for Multithreaded Programming
Shared Data
What data is shared?
What data is not shared?
What type of simultaneous access causes a problem?
What type of simultaneous access is safe?
What can I count on?

0 comments:

Post a Comment