The M:N Concurrent Model – A Complete Guide

M:N 동시성 모델은 M개의 사용자 스레드를 N개의 커널 스레드에 매핑하여 하드웨어 병렬성과 논리적 동시성을 모두 활용하는 방식입니다. 이 모델은 Go의 고루틴, Java의 가상 스레드, Erlang 프로세스 등에서 사용되며, 경량 스레드 생성과 비차단 I/O 처리에 강점이 있습니다. 다만 스케줄러 구현 복잡성, 디버깅 어려움, FFI 및 시그널 처리 문제 등 단점도 존재합니다. 스택 관리 방식으로는 고정 스택, 분할 스택, 복사/성장 스택 등이 있으며, Go는 복사/성장 스택 방식을 사용해 핫 스플릿 문제를 해결합니다.

https://0xkiire.com/mn-concurrency-model/

#concurrency #m:nmodel #greenthreads #scheduler #stackmanagement

The M:N Concurrent Model — A Complete Guide. Fr | 0xKiire

"Concurrency is not parallelism. Parallelism is about doing many things at once. Concurrency is about dealing with many things at once. The M:N model is the...

0xKiire