Single-core CPU, thread is serial, there is a component in the operating system called the task scheduler, the CPU time slice (windows minimum of 15 ms) is distributed to different threads. The switching speed of threads is very fast, so it feels that colleagues are actually micro serial, macro parallel.
The practice of threads rotating with the CPU is called concurrent.
(concurrent): The ability to deal with multiple things at the same time
(parallel): The ability to do multiple things at the same time
Top comments (0)