병행 제어
1. 컴퓨터의 연산
2. Race Condition
(1) 문제의 발생
(2) 정말 생길까?
(3) 문제가 일어나는 과정
(4) 정리: OS에서 Race Condition가 발생하는 경우
3. OS에서의 Race Condition
(1) 문제의 발생
(2) 해결책
(3) OS에서의 Race Condition (interrupt handler vs. kernel)
(4) OS에서의 Race Condition (multi-processor)
a. 방법 1
b. 방법 2
4. Process Synchronization 문제
(1) Race condition
(2) 해결책
5. Example of a Race Condition
6. The Critical-Section Problem
7. Attempts to solve problem
(1) Initial Attempts to solve problem
(2) 프로그램적 해결법의 충족 조건
a. Mutual Exclusion (상호 배제)
b. Progress (진행)
c. Bounded Waiting (유한 대기)
(3) 동시 접속을 막기 위한 알고리즘 1
(4) 동시 접속을 막기 위한 알고리즘 2
(5) 동시 접속을 막기 위한 알고리즘 3
(6) Synchronization Hardware
8. Semaphores
(1) Semaphore란?
P 연산
V 연산
(2) Critical Section of n Processes
(3) Semaphore를 정의하는 방법
(4) Block & Wakeup Implementation
(5) Implementation
P 연산 시 일단 S value를 1을 뺀다
언제 깨어나나?
value에 따른 상황
(6) Busy-waiting vs. Block/Wake up
(7) Two Types of Semaphores
Counting Semaphore
Binaray Semaphore
Last updated