NSThread is officially provided by Apple. It is more object-oriented and easy to use than PThread. You can directly manipulate thread objects. However, it is...
Grand Central Dispatch(GCD) is a relatively new solution to multicore programming developed by Apple. It is used to optimize applications to support multi-core processors and...
Properties in Objective-C are defined by using @property. For example, properties capture the state of an object. They reflect the intrinsic attributes of an object...
Before we start using messaging mechanisms, we can agree on our terminology. For example, many people don't know what "method" and "message" are, but this...
"This is the 8th day of my participation in the August Changwen Challenge. For details, see" August Changwen Challenge ". KVO custom ideas ISA points...
Using NSOperation and NSOperationQueue together is also a multithreaded solution provided by Apple. NSOperation is based on a higher level of encapsulation of the GCD...
1. Theoretical Basis of KVO KVO is the implementation of the Observer Pattern in Objective-C. The observer object is notified when one of the properties...
1. Application of fence function 1. Concurrent fence function asynchronously run print result 2. 3. Global queue barrier function asynchronous run print results concurrent disorder...
In the previous chapter 'Exploring the underlying principles of iOS: Principles of GCD (Part 1)', we focused on the in-depth analysis of GCD functions and...
In this chapter, we mainly analyze the underlying source implementation of synchronous and asynchronous functions. Before exploring, let's first understand the difference between synchronous and...
"This is the seventh day of my participation in the August Changwen Challenge. For details, see" August Changwen Challenge ". Foreword KVO some details explore...
The most commonly used timing method for daily development is NSTimer, and CADisplayLink and GCDTimer are still a bit cumbersome to write. But there's an...
In the previous article, we introduced functions and queues. We also looked at calling stacks of functions; Today we are going to analyze how deadlocks...
Semaphores are similar to 'binary semaphores' on page 26 of The Programmer's Self-improvement book. A Binary Semaphore is the simplest type of lock, which has...
In the last blog of GCD different queue of the underlying source exploration analysis, then this blog will GCD sync sync function, async asynchronous function...
In the previous blog, I introduced the combination of queues and asynchronous and synchronous functions; With a clearer understanding of the queues and functions of...
In this chapter, the essence of content classification RWE develops the assignment classification loading process five kinds of situation analysis class and classification implementation load...
The Dispatch Source is a wrapper around the BSD system kernel's customary kQueue, which is a technique for application programmers to perform processing when various...