You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
자바스크립트 이벤트 루프란?
-자바스크립트는 단일 스레드임
-단일 스레드: 동시에 하나의 작업만 처리할 수 있다는 의미
-그러나 JS는 동시에 작업이 처리되는데 어떻게 동시에 처리 할 수 있었을까?
-바로 이벤트 루프 덕분임
-이벤트 루프란?: 자바스크립트가 구동되는 환경(브라우저, Node.js등)에서는 여러개의 스레드가 사용되는데 이러한 구동 환경이 단일 호출 스택을 사용하는 자바스크립트 엔진가 상호 연동하기 위한 장치