Overview
When we use multithreading, multiple threads may access the same resource, which can easily lead to problems such as data confusion and data security. At this time, we need to ensure that only one thread accesses this resource at a time, and locks emerge as the times require .
Icon ranking of performance before locking in iOS:
What is often contacted during development is NSLock与@synchronized
that other follow-up studies are underway.