Race Condition여러 프로세스가 공유하는 데이터에 동시에 접근하면 Data Inconsistency가 일어날 수 있다.공유된 변수 counter (= 5)가 있다고 하자.// P1{ ... counter++}// P2{ ... counter--}이렇게 두 프로세스가 동시에 count++과 count--를 실행하면P1은reg1 = counterreg1 = reg1 + 1counter = reg1을 실행하고, P2는reg1 = counterreg1 = reg1 - 1counter = reg1을 실행할 것이다.이 경우 counter는 5가 아니라 두 결과 중 나중에 적용된 4나 6일 것이다.이렇게 여러 프로세스가 공유된 데이터에 동시에 접근하..