네트워크
-
Polling, Interrupt 방식네트워크 2019. 4. 22. 11:24
배경 타운홀 리뉴얼 과정에서 현황판의 데이터를 가져오는 방식을 polling 방식, interrupt 방식로 할 것인지 결정해야 했습니다. 10초마다 자동으로 갱신하는 polling 방식을 선택했습니다. 웹서핑 도중 polling이 쓰이는 여러 상황, 두 방식을 부르는 명칭을 발견해 명확히 알고 가면 좋을 것 같아 정리합니다. 개념 CPU에서 vs 통신에서 vs 웹에서 polling CPU - Polling은 특정 주기를 가지고 그 주기 마다 처리를 위한 시그널이 들어 왔는지를 체크 합니다. 따라서 커널과 같은 Interrupt Handler가 필요하지 않습니다. 해당 드라이버에서 스레드를 돌면서 주기적으로 체크만 하면 되기 때문입니다. 그래서 Interrupt 방식보다 구현이 쉽습니다. 하지만 시스템의..