1. . A thread is defined as:
(A) A program stored on disk
(B) A device driver
(C) A file in memory
(D) The smallest unit of CPU execution within a process
2. . A process may contain:
(A) Multiple threads
(B) Only one thread
(C) No threads
(D) Only two threads
3. . Threads within the same process share:
(A) Code section
(B) Data section
(C) Resources
(D) All of the above
4. . The main advantage of multithreading is:
(A) Increased CPU usage
(B) Slower processing
(C) More hardware usage
(D) Better performance and responsiveness
5. . Each thread has its own:
(A) All of the above
(B) Stack
(C) Registers
(D) Program counter
6. . Threads share which of the following?
(A) Memory space
(B) All of the above
(C) Resources of the process
(D) Files
7. . A thread is also known as:
(A) Heavy process
(B) Lightweight process
(C) System file
(D) Device driver
8. . Which of the following manages threads in a system?
(A) Text editor
(B) Compiler
(C) Operating System
(D) Assembler
9. . Multithreading allows:
(A) Only one task at a time
(B) Multiple tasks within a single process
(C) Only one program execution
(D) No program execution
10. . Which of the following is a benefit of multithreading?
(A) All of the above
(B) Faster execution
(C) Better responsiveness
(D) Improved resource utilization
11. . The thread library provides:
(A) Network management
(B) Hardware drivers
(C) File storage
(D) Functions to create and manage threads
12. . User-level threads are managed by:
(A) Operating system kernel
(B) BIOS
(C) CPU hardware
(D) Thread library in user space
13. . Kernel-level threads are managed by:
(A) User applications
(B) Operating system kernel
(C) Compiler
(D) Text editor
14. . A disadvantage of user-level threads is:
(A) Slow performance
(B) If one thread blocks, all threads block
(C) More memory usage
(D) No CPU usage
15. . Which of the following is an example of a thread library?
(A) MS Word
(B) POSIX Threads (Pthreads)
(C) Photoshop
(D) Chrome
16. . Multithreading improves:
(A) System performance
(B) CPU utilization
(C) All of the above
(D) Program responsiveness
17. . In multithreading, threads execute:
(A) Independently but within the same process
(B) Sequentially only
(C) Only after the process ends
(D) Without CPU
18. . Which of the following is NOT a benefit of threads?
(A) Resource sharing
(B) Responsiveness
(C) Increased complexity in programming
(D) Efficient communication
19. . Threads communicate easily because they:
(A) Share memory space
(B) Use separate computers
(C) Use separate processes
(D) Use different CPUs only
20. . The main purpose of thread management is to:
(A) Manage printers
(B) Store files
(C) Manage multiple threads efficiently
(D) Control hardware only