Kittu20
Member level 2
I'm trying to understand the basics fundamental of preemptive multitasking.
I found multitasking is a method that allows multiple Tasks to share (CPU time).
Let's say we have a Tasks like this
Task 1 - Middle Priority
Task 2 - Lower Priority
Task 3 - High Priority
A single core CPU can execute only one task at a time. Hence CPU will always execute Task 3 as it is higher priority task.
I do not understand that if Task 3 will always be executed then when will the rest of the Task get CPU time.
I found multitasking is a method that allows multiple Tasks to share (CPU time).
Let's say we have a Tasks like this
Task 1 - Middle Priority
Task 2 - Lower Priority
Task 3 - High Priority
A single core CPU can execute only one task at a time. Hence CPU will always execute Task 3 as it is higher priority task.
I do not understand that if Task 3 will always be executed then when will the rest of the Task get CPU time.