The single core CPU is able to achieve multi-process, mainly relies on the operating system of the process scheduling algorithm
such as time-slice rotation algorithm, in the early days, for example: There are 5 running programs (that is, 5 processes): QQ Youdao dictionary netease cloud Music Chrome browser, the operating system allows single-core CPUs to run these processes in turn, a process that only runs 2ms, which can look like multiple processes running simultaneously, enabling multi-process
In << operating system >> inside, the process scheduling algorithm has many, such as first to first service, priority scheduling, the shortest job priority, and so on , long time did not see these are almost forgotten, only often review the old knowledge to better grasp
Related introduction can see some Daniel's summary, such as 51638300
2. How does a single-core CPU achieve multi-process?