본문 바로가기
Computer Science

Concurrency vs Parallelism

by yongmin.Lee 2020. 10. 24.

concurrency vs parallelism 1

 

concurrency vs parallelism 2

Concurrency

  • Concurrency is when two or more tasks can start, run, and complete in overlapping time periods. It doesn't necessarily mean they'll ever both be running at the same instant. For example, multitasking on a single-core machine.
  • 동시성은 두 개 이상의 작업이 겹쳐있는 시간에 실행, 실행 및 완료 될 수 있다. 하지만 반드시 둘 다 같은 순간에 실행 된다는 의미는 아니다.
  • 예시로 단일 코어 컴퓨터에서의 멀티태스킹이 있다.
  • 동시성은 서로의 작업들이 인터럽트되며 동작이 이루어 진다.

 

Parallelism

  • Parallelism is when tasks literally run at the same time, e.g., on a multicore processor.
  • 병렬성은 말 그대로 작업이 동시에 실행되는 경우를 말한다. 예시로 멀티 코어 프로세서가 있다.
  • 병렬성은 동시성과 서로의 작업들이 독립적이다

 

 

'Computer Science' 카테고리의 다른 글

Coroutine vs Thread  (0) 2020.10.24