나는 생각했다. 그러면 GIL 때문에 쓰레드 작업에서 락걸거나, 따로 통제할 필요가 없겠네. GIL 특성상 무조건 딱 하나의 스레드만 실행시켜주니깐! 하지만 이 말은 틀렸다. GIL는 동시접근을 보장해주는 락역활이라고 생각했지만 그렇지않다. 그 이유는 코드로 확인해보자. class Counter: def __init__(self): self.count = 0 def increment(self, offset): self.count += offset def worker(sensor_index, how_many, counter): BARRIER.wait() for _ in range(how_many): counter.increment(1) # Example 3 from threading import Barri..