Is there a difference between concurrency and parallelism in java?

前端 未结 8 1401
时光说笑
时光说笑 2021-01-30 13:35

I have been doing some research in Google and cant quite get my head around the differences (if any) between concurrent and parallel programs in java. Some of the information I

8条回答
  •  离开以前
    2021-01-30 14:08

    Parallelization (or Parallelism or Parallel computing) is a form of computation in which many calculations are carried out simultaneously. In essence, if a CPU intensive problem can be divided in smaller, independent tasks, then those tasks can be assigned to different processors

    Concurrency is more about multitasking which is executing many actions but not necessary CPU intensive problem.

提交回复
热议问题