Art of Pr0gr4m

병렬성(Parallelism)과 동시성(Concurrency) 본문

IT

병렬성(Parallelism)과 동시성(Concurrency)

pr0gr4m 2024. 7. 21. 16:21

concurrency is the ability of different parts or units of a program, algorithm, or problem to be executed out-of-order or in partial order, without affecting the outcome. This allows for parallel execution of the concurrent units, which can significantly improve overall speed of the execution in multi-processor and multi-core systems. In more technical terms, concurrency refers to the decomposability of a program, algorithm, or problem into order-independent or partially-ordered components or units of computation.

Parallel computing is a type of computation in which many calculations or processes are carried out simultaneously.

parallelism and concurrency are two different things: a parallel program uses multiple CPU cores, each core performing a task independently. On the other hand, concurrency enables a program to deal with multiple tasks even on a single CPU core; the core switches between tasks (i.e. threads) without necessarily completing each one. A program can have both, neither or a combination of parallelism and concurrency characteristics.

 

Note that in computer science, parallelism and concurrency are two different things: a parallel program uses multiple CPU cores, each core performing a task independently. On the other hand, concurrency enables a program to deal with multiple tasks even on a single CPU core; the core switches between tasks (i.e. threads) without necessarily completing each one. A program can have both, neither of or a combination of parallelism and concurrency characteristics.

 

Concurrenty is a property of the program and parallel execution is a property of the machine.

Concurrency는 프로그램의 성질이고 parallel execution은 기계의 성질이다.

'IT' 카테고리의 다른 글

블로킹, 논블로킹, 동기, 비동기 비교  (0) 2024.07.28
Linux Kernel Network Commit #3  (0) 2021.08.25
Linux Kernel Network Commit #2  (1) 2021.08.20
Linux Kernel 참고 사이트 추천  (4) 2021.07.27
Linux Kernel Network Commit #1  (2) 2021.07.24