Recall & Review
beginner
What is a process in an operating system?
A process is a program in execution. It has its own memory space and system resources, and runs independently.
Click to reveal answer
beginner
What is a thread in an operating system?
A thread is a smaller unit of a process that can run independently but shares the process's memory and resources.
Click to reveal answer
intermediate
How do processes and threads differ in memory usage?
Processes have separate memory spaces, while threads share the same memory within a process.
Click to reveal answer
intermediate
Why are threads considered lightweight compared to processes?
Threads use less memory and resources because they share the process's memory and resources, making them faster to create and switch between.
Click to reveal answer
beginner
Can multiple threads run at the same time within a single process?
Yes, multiple threads can run concurrently within a process, allowing tasks to be done in parallel.
Click to reveal answer
Which of the following has its own separate memory space?
✗ Incorrect
Processes have their own separate memory space, while threads share memory within a process.
What is shared among threads within the same process?
✗ Incorrect
Threads share both memory and system resources of their parent process.
Which is faster to create and switch between?
✗ Incorrect
Threads are lightweight and faster to create and switch because they share resources.
Can threads run in parallel within a process?
✗ Incorrect
Multiple threads can run concurrently within a process, enabling parallelism.
Which of these is true about processes?
✗ Incorrect
Processes have independent memory and resources, unlike threads.
Explain the main differences between a process and a thread.
Think about memory and resource sharing.
You got /4 concepts.
Describe why threads are useful in multitasking within a program.
Consider how threads help a program do many things at once.
You got /4 concepts.