Podcast
Questions and Answers
What is a thread in computing?
What is a thread in computing?
- A sequence of stored data
- A type of computer process
- A unit for allocating system memory
- A basic unit of CPU utilization (correct)
What is a benefit of multi-threading in an operating system?
What is a benefit of multi-threading in an operating system?
- Increases the complexity of a program
- Requires more memory than single-threading
- Slows down the execution of tasks
- Allows a process to perform more than one task at a time (correct)
What is the difference between concurrency and parallelism?
What is the difference between concurrency and parallelism?
- There is no difference; they are the same
- Concurrency is for single-core CPUs, parallelism is for multi-core CPUs only
- Concurrency involves task order, parallelism requires tasks to be the same
- Concurrency is task coordination, parallelism is doing tasks at the same time (correct)
In a multi-threading model, what does the term 'one-to-one mapping' refer to?
In a multi-threading model, what does the term 'one-to-one mapping' refer to?
What is the main difference between user threads and kernel threads?
What is the main difference between user threads and kernel threads?
What is a thread pool?
What is a thread pool?
How is concurrent execution achieved on a single-core system?
How is concurrent execution achieved on a single-core system?
How is thread cancellation achieved in pthreads?
How is thread cancellation achieved in pthreads?
What is the many-to-many threading model?
What is the many-to-many threading model?
What does a thread pool in a multi-threaded application do?
What does a thread pool in a multi-threaded application do?