1What is multitasking?
The ability of an OS to run multiple tasks at once
2What are the two types of multitasking?
Preemptive and cooperative
3In multitasking, how many tasks use the CPU at one time?
One
4What is multithreading?
Concurrent execution of multiple threads in one process
5How do threads in multitasking operate?
Independently but share resources
6Give an example of multithreading
A browser loading multiple tabs
7How does multithreading improve efficiency?
By reducing process context switching
8How does multithreading improve responsiveness?
By handling inputs and background tasks together
9How does multithreading enhance parallelism?
By distributing threads across CPU cores
10What challenge comes with multithreading?
Complexity in synchronization
11What is harder in multithreaded applications?
Debugging due to race conditions or deadlocks
12How does multitasking differ from multithreading?
Multitasking uses processes, multithreading uses threads