Complete the sentence to explain why threads enable concurrent execution.
Threads allow multiple [1] to run within the same process at the same time.Threads enable concurrent execution by allowing multiple tasks to run within the same process simultaneously.
Complete the sentence to describe how threads share resources.
Threads share the same [1] space, which allows them to access common data easily.Threads share the same memory space, enabling them to access and modify common data efficiently.
Fix the error in the sentence explaining thread execution.
Threads run completely independently and do [1] any resources.
The correct statement is that threads share resources; they do not run completely independently without sharing.
Fill both blanks to explain how threads improve performance.
Threads can run [1] on multiple [2], improving the speed of a program.
Threads run concurrently on multiple processors, which helps programs run faster by doing many things at once.
Fill all three blanks to describe thread behavior.
A thread is a [1] of execution that shares [2] with other threads but has its own [3].
A thread is a unit of execution that shares process resources with other threads but has its own stack for keeping track of its work.