美文网首页
【The Java™ Tutorials】【Concurrenc

【The Java™ Tutorials】【Concurrenc

作者: Ppian | 来源:发表于2018-04-19 14:18 被阅读0次

Concurrency vs. Parallelism

Concurrency vs. Parallelism

并发的关键是你有处理多个任务的能力,不一定要同时。并行的关键是你有同时处理多个任务的能力。并发和并行的区别的关键在于是否“同时”

从代码的角度来看的话,并发:不同代码块交替执行;并行:不同代码块同时执行。

目录:

  1. Processes and Threads
  2. Thread Objects
  3. Synchronization
  4. Liveness
  5. Guarded Blocks
  6. Immutable Objects
  7. High Level Concurrency Objects

相关文章

网友评论

      本文标题:【The Java™ Tutorials】【Concurrenc

      本文链接:https://www.haomeiwen.com/subject/gzobcftx.html