Module 0225: Of Processes and Threads
Tak Auyeung, Ph.D.
May 10, 2010
1
About this module
2
Process vs. Program
3
Creating processes
3.1
Fork
3.2
What do parent/child processes share?
3.3
Inter-process communication
4
Threads
4.1
Roughly speaking, what is a thread?
4.2
When to use processes and when to use threads?
4.3
Linux PThreads
5
pthreads
5.1
The first thread and the manager thread
5.2
Creating a new thread
5.3
A bi-directional data pump