Threads in Operating Systems (original) (raw)
What is a thread in the context of an operating system?
- A program under execution
- A memory allocation method
Threads are effective only if the CPU is:
Which of the following is shared among all threads in a process?
Which component is NOT unique to each thread?
- To ensure each task runs in a separate memory space
- To run multiple tasks simultaneously within a single process
- To reduce memory usage to zero
- To make programs run faster
Which of the following is NOT a component of a thread?
User-level threads are managed by:
Which is a disadvantage of user-level threads?
- Entire process blocks if one thread blocks
- Cannot run on single-core systems
Kernel-level threads can run on multiple processors because:
- They are invisible to the OS
- They share the same stack
- They don’t require hardware support
- The kernel schedules them directly
Main difference between a process and a thread is:
- Processes share memory, threads do not
- Threads share memory, processes do not
- Threads are heavier than processes
- Processes are faster to create than threads
There are 12 questions to complete.
Take a part in the ongoing discussion