Threads
Introduction
Before we begin
- Next Monday: Exam 1
– Thursday: Review session – Send questions via e-mail.
- Any questions?
Plan
- Today: Introduction to threads
- Tomorrow: Scheduling / Synchronization
- Thursday: Review
- Next Monday: Exam
- Next Tuesday: more Synchronization
- Next Thursday: Examples
Threads
- Remember this from CS2?
– Demo
Thread
- A thread is a single sequential flow of
control within a program
- Sometimes called:
– Execution context – Lightweight process
Thread
- A thread is not a program