DEV Community

ChelseaLiu0822
ChelseaLiu0822

Posted on

[Java]Parallel and concurrent

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)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay