[Swift] GCD(Grand Central Dispatch) - 2 / Dispatch Queue
·
Swift/개념 & 응용
* GCD 포스팅은 2편으로 구성되어 있습니다. 1편은 여기에서 볼 수 있습니다. Dispatch Queue 종류 Dispatch Queue는 세 가지 종류가 있습니다. Main Queue, Global Queue, Custom Queue 인데요. 하나씩 알아보도록 합시다. Main Queue Main Queue는 Main Thread에서 작업을 보관하고 수행하는 Queue입니다. Main Thread에서 동작하기 때문에 단 하나만 존재할 수 있고, 자연스럽게 Serial 특성을 갖습니다. (Concurrent는 여러 Thread로 분산해야 하는데 Queue가 단 하나만 존재하므로 분산될 수가 없다) Main Queue는 UI 업데이트를 담당하는데요. 화면 위에 UI를 그리는 작업을 Main Queue에..
[Swift] GCD(Grand Central Dispatch) - 1
·
Swift/개념 & 응용
* GCD 포스팅은 총 2편으로 작성되었습니다. 1편에서는 GCD가 무엇인지, serial/concurrent, sync/async에 대해 알아봅니다. 2편에서는 Dispatch Queue의 종류와 특성에 대해 알아볼 계획입니다. GCD(Grand Central Dispatch)란? Dispatch, also known as Grand Central Dispatch (GCD), contains language features, runtime libraries, and system enhancements that provide systemic, comprehensive improvements to the support for concurrent code execution on multicore hardwa..
유정주
'dispatch queue' 태그의 글 목록