Lecture 15
Learning objectives
After this class, you should be able to:
- Explain the differences between processes and threads.
- Use the following features of pthreads to write simple parallel programs:
pthread_create
andpthread_join
.
Reading assignment
- Section 4.1 - 4.2.
- Lecture 15 slides.
- Lecture 15 example codes.
Exercises and review questions
- Questions on current lecture's material
- Rewrite one of the
pi
codes to use pthreads for parallelization.- (Post on the discussion board) Identify one difference between threads and processes that has not bee posted by anyone else on the discussion board.
- Questions on next lecture's material
- None.