Which is NOT shared between threads of the same process?
- Each thread has its own stack and registers.
Why threads, single vs. multithreaded processes, benefits, multicore programming and its challenges, concurrency vs. parallelism, user and kernel threads, and the many-to-one, one-to-one, many-to-many and two-level models.
Every original slide is shown unchanged. Yellow marks on a slide point to a numbered note: hover or tap a mark to jump to its note, and hover a note to see its marks. Questions tagged Past exam appeared on a real paper; Prediction questions are likely angles, not confirmed. Pick an answer to each question: a wrong pick tells you why it is wrong, so you can try again.
Which is NOT shared between threads of the same process?
Which is a benefit of multithreading?
Concurrency: more than one task making progress (possible on one core by interleaving). Parallelism: tasks running at the same time (needs multiple cores).
Memory trick Parallelism ⇒ concurrency, but concurrency does not need parallelism.
Concurrency is possible on a single-core system.
Parallelism is possible on a single-core system.
In the many-to-one model, if one thread makes a blocking system call: