Role of Multithreading in Multitasking

12 flashcardsby —Griffith—
Study these flashcardsFree · spaced repetition · iPhone, Android, Mac & web

All cards

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