Daily iOS
Memory and ARCByteDance

atomic properties and increments

In Objective-C you declare @property (atomic) int a; and run self.a = self.a + 1 a combined 10,000 times from several threads. Is a 10,000 at the end? And how do you get the same guarantee in Swift? Select all that apply.

Pick all that apply

Submit