{"action":"closed","issue":{"url":"https://api.github.com/repos/JaewukLee/Javascript/issues/1","repository_url":"https://api.github.com/repos/JaewukLee/Javascript","labels_url":"https://api.github.com/repos/JaewukLee/Javascript/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/JaewukLee/Javascript/issues/1/comments","events_url":"https://api.github.com/repos/JaewukLee/Javascript/issues/1/events","html_url":"https://github.com/JaewukLee/Javascript/issues/1","id":389341647,"node_id":"MDU6SXNzdWUzODkzNDE2NDc=","number":1,"title":"01. Call Stack","user":{"login":"JaewukLee","id":16644658,"node_id":"MDQ6VXNlcjE2NjQ0NjU4","avatar_url":"https://avatars1.githubusercontent.com/u/16644658?v=4","gravatar_id":"","url":"https://api.github.com/users/JaewukLee","html_url":"https://github.com/JaewukLee","followers_url":"https://api.github.com/users/JaewukLee/followers","following_url":"https://api.github.com/users/JaewukLee/following{/other_user}","gists_url":"https://api.github.com/users/JaewukLee/gists{/gist_id}","starred_url":"https://api.github.com/users/JaewukLee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JaewukLee/subscriptions","organizations_url":"https://api.github.com/users/JaewukLee/orgs","repos_url":"https://api.github.com/users/JaewukLee/repos","events_url":"https://api.github.com/users/JaewukLee/events{/privacy}","received_events_url":"https://api.github.com/users/JaewukLee/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-10T15:02:54Z","updated_at":"2018-12-11T13:54:12Z","closed_at":"2018-12-11T13:54:12Z","author_association":"OWNER","body":"1. Call Stack\r\n\r\n- 호출 각 단계를 Stack Frame.\r\n![01 call stak](https://user-images.githubusercontent.com/16644658/49739505-65be3d00-fcd5-11e8-8704-b2642c7c05c1.png)\r\n\r\n\r\n2. Event Loop\r\n- JavaScript의 메인 쓰레드 => 싱글 쓰레드임\r\n- Call Stack만으로는 동작이 매끄럽지 않음\r\n- Background, Task Queue 를 이용해 Concurrency 지원\r\n\r\n![02 event loop](https://user-images.githubusercontent.com/16644658/49740430-84253800-fcd7-11e8-9e56-3c8b7dfbe1b8.png)\r\n\r\n- Call Stack -> Background -> Task Queue\r\n- Background에서 대기 후 Task Queue로 보냄\r\n- Event Loop가 대기하다가, Call Stack이 비면 Task Queue에서 Call Stack으로 보냄\r\n- TODO : 백그라운드로 보내지는 원리?"}}
{"actor":{"display_login":"JaewukLee"}}