Synchronization(2)

Synchronization Hardware


Lock

TestAndSet Instruction

Swap Instruction

Bounded Waiting 조건 해결

Semaphore


Semaphore의 종류

Semaphore의 사용

Semaphore의 구현

Semaphore의 문제점

Classical Problems


본 절에서는 대표적인 동기화 문제에 대해서 알아본다.

Bounded-Buffer Problem

Readers and Writers Problem

Dining-Philoosophers Problem

Monitor