atomic1 Device Driver - Atomic Atomic 연산 Atomic 연산이란 연산 수행 중 다른 thread로 context 전환이 되지 않는 연산을 의미하며 task의 context switching이 일어나거나 interrupt routine에서 해당 메모리에 대해 동시 처리되지 않도록 보장하는 연산을 일컫는다. 성능이 굉장히 중요한 부분에 있어서 Lock을 사용하기에는 성능 저하가 우려되는 경우 사용 Function Description ATOMIC_INIT(int i) At declaration, initialize an atomic_t to i int atomic_read(atomic_t *v) Atomically read the integer value of v void atomic_set(atomic_t *v, int i) At.. 2022. 5. 23. 이전 1 다음 728x90