일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Vue.js
- Algorithm
- BFS
- 구현
- SWEA
- spring boot
- Data Structure
- Linked list
- 코테
- 시뮬레이션
- 알고리즘
- DFS
- JavaScript
- aws
- 코딩테스트
- Python
- gpdb
- hash table
- 모의SW역량테스트
- CSV
- programmers
- SQL
- Priority Queue
- Back tracking
- Bruth Force
- boj
- 알고리듬
- django
- GitHub
- Trie
- Today
- Total
hotamul의 개발 이야기
[Golang] Concurrency is not parallelism (Goroutines, Channels, ...) 본문
[Golang] Concurrency is not parallelism (Goroutines, Channels, ...)
hotamul 2022. 11. 21. 00:23Concurrency vs. parallelism
Concurrency is about dealing with lots of things at once.
Parallelism is about doing lots of things at once.
Not the same, but related.
Concurrency is about structure, parallelism is about execution.
Concurrency provides a way to structure a solution to solve a problem that may (but not necessarily) be parallelizable.
An analogy
Concurrent: Mouse, keyboard, display, and disk drivers.
Parallel: Vector dot product
Please watch this video(https://youtu.be/oV9rvDllKEg
or this slide(https://go.dev/talks/2012/waza.slide)
Concurrency is not Parallelism
More gophers and more carts This will go faster, but there will be bottlenecks at the pile and incinerator. Also need to synchronize the gophers. A message (that is, a communication between the gophers) will do. 14
go.dev
'Dev. > Golang' 카테고리의 다른 글
[Golang] How to setup Go in mac (0) | 2022.11.18 |
---|