Why does CPU have to multitask time-sharing execution? CPU wastes a lot of time in context switching. It feels like one execution is not finished and the speed of the other is fast.

Why does CPU multitask time-sharing execution? CPU wastes a lot of time in context switching. It feels like one is not finished and the other is fast

.
May.16,2022

what if the previous task takes 3 seconds to execute? All subsequent tasks must wait for the completion of this task before they have a chance to be carried out.
what are the consequences of this? Imagine opening a slow website that takes 3 seconds to establish a connection with.
so during these 3 seconds, the user will not be able to do anything else: moving the mouse, playing sound, updating the screen, and other core services of the operating system will be forced to pause, and the whole computer will be no different from a crash.
what do you think of this user experience?

Menu