Alex Shchukin·Jun 24, 2024Lock-free in Swift: ABA ProblemIn the previous article, we talked about using atomic primitives. Today, we will cover one of the main challenges in lock-free algorithms…
Alex Shchukin·Dec 28, 2023Lock-Free in Swift: Memory model and Peterson’s algorithmToday we will continue to explore atomics and the lock-free topic we started in the previous article. We will discuss the memory model that…
Alex Shchukin·May 5, 2023GCD Primitives in Depth: Serial QueueIn the previous article, we implemented DispatchSemaphore and DispatchGroup ourselves. Today, we will develop a simplified version of…
Alex Shchukin·Dec 14, 2022Lock-free in Swift: BarriersI want to start another series of articles about lock-free algorithms and how we can implement them using swift atomics framework. It’s a…A response icon1A response icon1
Alex Shchukin·Oct 19, 2022GCD Primitives in Depth: Semaphore and GroupIn this article, we will implement some of the GCD classes using low-level primitives to understand how GCD is actually functioning.A response icon1A response icon1
Alex Shchukin·Apr 18, 2022GCD Part 5: DispatchSource and Target Queue HierarchyIn this article, we will discuss some niche concepts such as DispatchSource and target queue hierarchy.
Alex Shchukin·Nov 19, 2021GCD Part 4: SynchronizationThe topic of today’s article is synchronization. It’s one of the most important concepts in multithreading. And we will see how we can…
Alex Shchukin·Sep 16, 2021GCD Part 3: DispatchGroup and concurrentPerformToday we will consider one of the most useful GCD components DispatchGroup and also we will take a look at the concurrentPerform method and…
Alex Shchukin·Jul 2, 2021GCD Part 2: DispatchWorkItem and Quality of ServiceThis is the second part of the GCD series and here we will discuss QoS and DispatchWorkItem.
Alex Shchukin·May 26, 2021GCD Part 1: Queues and methodsI would like to start a series of articles about Grand Central Dispatch (GCD). GCD or libdispatch is one the most popular instruments for…A response icon1A response icon1