Zettelkasten

Run-to-Completion Model for Threads

·수정 2026.04.23·수정 2

요약

  • Run-to-Completion(RTC) 모델을 "작업 단위" 기준으로 다른 작업이 끼어들지 않는 실행모델
  • 처리중에는 선점이 없고 완료 후에 다음 작업을 시작한다.

본문

while len(commands) != 0:
   command = commands.pop(0)
   command.execute()

참고

Preemptive concorrency(선점형 동시성 모델) Cooperative Concurrency(협력적 동시성 모델)