일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
- commit
- Kernel
- devicedriver
- Linux
- allocator
- kafka
- slab
- BLOCK
- 카프카
- slowpath
- Network
- lruvec
- buddy_system
- NDK
- proc
- mm_struct
- Android
- strex
- memory
- page
- multiqueue
- pmap
- fastpath
- vm_area_struct
- spinlock
- Apache
- vmalloc
- slub
- kmalloc
- blk-mq
- Today
- Total
Art of Pr0gr4m
병렬성(Parallelism)과 동시성(Concurrency) 본문
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 |