Practical RTOS Internals
Mutex 내부 구현 추적 — Owner·Recursion Count·ISR 금지
FreeRTOS V11.2.0의 Queue·TCB 상태를 따라 mutex 소유자와 재귀 횟수, priority inheritance·복원 조건 및 ISR 사용 제한을 확인합니다.
· 8분 읽기
mutex owner
6개의 포스트
FreeRTOS V11.2.0의 Queue·TCB 상태를 따라 mutex 소유자와 재귀 횟수, priority inheritance·복원 조건 및 ISR 사용 제한을 확인합니다.
Mutex의 소유권·재귀 횟수·priority inheritance를 구분하고, FreeRTOS의 timeout과 다중 mutex 제약을 확인합니다.
공유 자원 보호의 3가지 도구로 interrupt disable, spinlock, mutex가 있습니다. 언제 어느 것을 쓰는지 정리합니다.
Mutex blocking 비용과 Linux futex 2-stage, adaptive mutex, priority inheritance overhead.
Priority Inversion 발생 시나리오. Mars Pathfinder 사례. PI mutex, Priority Ceiling.
Mutex와 binary semaphore의 차이, priority inheritance, recursive lock, timeout, ownership 규칙을 정리합니다.