Explain why UIKit is not thread safe internally

Updated May 17, 2026

Short answer

UIKit assumes single-threaded main run loop execution model.

Deep explanation

UIKit avoids locks for performance reasons. It assumes all mutations occur on main thread, simplifying rendering pipeline and reducing overhead. Thread safety would significantly reduce performance.

Unlock with a Pro subscription to view this section.

View pricing

Real-world example

No real-world example available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Common mistakes

No common mistakes listed yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Follow-up questions

No follow-up questions available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

More Objective-C interview questions

View all →