본문 바로가기

Swift Concurrency3

Swift concurrency: Behind the scenes https://developer.apple.com/videos/play/wwdc2021/10254/ Swift concurrency: Behind the scenes - WWDC21 - Videos - Apple Developer Dive into the details of Swift concurrency and discover how Swift provides greater safety from data races and thread explosion while... developer.apple.com Threading model 나만의 뉴스 피드 리더 앱을 만들고 있다고 가정하자 이 앱을 GCD 기반에서 Swift Concurrency로 전환해 보자! 메인 스레드에서는 User Interface를 담.. 2023. 9. 13.
Protect mutable state with Swift actors https://developer.apple.com/videos/play/wwdc2021/10133/ Protect mutable state with Swift actors - WWDC21 - Videos - Apple Developer Data races occur when two separate threads concurrently access the same mutable state. They are trivial to construct, but are notoriously... developer.apple.com 동시성 프로그래밍을 할 때 근본적으로 어려운 문제 중 하나는 Data race를 피하는 것이다. Data race는 두 개의 개별 스레드가 동시에 동일한 데이터에 엑세스하고 이러한 접근 중.. 2023. 8. 31.
Swift의 분산된 Actor 소개 https://developer.apple.com/wwdc22/110356 Meet distributed actors in Swift - WWDC22 - Videos - Apple Developer Discover distributed actors — an extension of Swift's actor model that simplifies development of distributed systems. We'll explore how... developer.apple.com Swift 동시성 기반 앱을 단일 프로세스 이상으로 활용하는 방법에 대해 알아보자! Swift Actor는 동일한 프로세스에서 Row-level Data Race로부터 사용자를 보호하도록 설계되었다. 이것은 컴파일 타임에 acto.. 2023. 8. 22.