hyoseok0 / tech-interview

기술 면접 질문 예시
0 stars 0 forks source link

[프로그래밍 일반] 프로그램 수행 방식 중 blocking 과 non-blocking 의 차이에 대해 설명해보세요. #4

Open hyoseok0 opened 2 years ago

hyoseok0 commented 2 years ago

https://projectreactor.io/docs/core/release/reference/#_blocking_can_be_wasteful

blocking wastes resources. If you look closely, as soon as a program involves some latency (notably I/O, such as a database request or a network call), resources are wasted because threads (possibly many threads) now sit idle, waiting for data.