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?

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3ed76-2c441.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3ed76-2c441.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?