Concurrency vs Parallelism

intro

  • concurrency is NOT parallelism.
  • although concurrency enables parallelism.
  • if only one processor, your program can still be concurrent but it cannot be parallel.
  • on the other hand, a well-written concurrent program might run efficiently
    • in parallel on a multi processors.

你可能感兴趣的:(Concurrency vs Parallelism)