Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight High
- A thread is a basic unit of CPU use: thread ID, program counter, registers, stack. Threads of one process SHARE code, data and open files.
🎯 How this can come up · 1 question
MCQ
Which is NOT shared between threads of the same process?
Each thread has its own stack and registers.
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight High
- Benefits: responsiveness, resource sharing, economy (cheaper than processes), scalability on multicore.
🎯 How this can come up · 1 question
MCQ
Which is a benefit of multithreading?
Correct: All of these.
Exam weight Low
- Multicore challenges: identifying tasks, balance, data splitting, data dependency, testing and debugging.
Exam weight Low
Exam weight High
- Concurrency: more than one task making progress (possible on one core by interleaving). Parallelism: tasks running at the same time (needs multiple cores).
Memory trickParallelism ⇒ concurrency, but concurrency does not need parallelism.
🎯 How this can come up · 2 questions
True / False
Concurrency is possible on a single-core system.
True. By interleaving.
True / False
Parallelism is possible on a single-core system.
False.
Exam weight Low
- User threads: managed by a user-level library (POSIX Pthreads, Java, Windows threads APIs).
Exam weight Low
- Kernel threads: managed by the OS kernel.
Exam weight Low
Exam weight Low
Exam weight High
- Many-to-one: many user threads → one kernel thread. One blocking call blocks all; no parallelism on multicore.
🎯 How this can come up · 1 question
MCQ
In the many-to-one model, if one thread makes a blocking system call:
Correct: The whole process blocks.
Exam weight Low
- One-to-one: each user thread gets a kernel thread (Windows, Linux). More concurrency, but many kernel threads may hurt performance.
Exam weight Low
- Many-to-many: many user threads multiplexed on a smaller or equal number of kernel threads.
Exam weight Low
- Two-level: many-to-many that also lets a user thread be bound to a kernel thread.
Exam weight Low
No slides match this filter.



















