Tag

recursive lock

1 views collected around this technical thread.

JD Retail Technology
JD Retail Technology
Dec 27, 2021 · Mobile Development

Understanding the Underlying Implementation of @synchronized in iOS

This article explains how the @synchronized directive works in iOS as a recursive mutex, demonstrates its usage with code examples, and delves into the low‑level implementation involving objc_sync_enter, objc_sync_exit, id2data, and the associated caching mechanisms.

SynchronizationiOSmobile development
0 likes · 8 min read
Understanding the Underlying Implementation of @synchronized in iOS
Test Development Learning Exchange
Test Development Learning Exchange
Dec 31, 2019 · Fundamentals

Multithreading Concepts: Locks, Deadlock, Recursive Locks, and Daemon Threads

This article explains multithreading fundamentals, covering thread concepts, lock mechanisms for database access, deadlock causes and solutions, recursive locks (RLock), data race issues, and daemon thread behavior. It also discusses connection pooling, timeout strategies to avoid deadlock, and practical code examples in Python.

ConcurrencyDaemon ThreadLocks
0 likes · 6 min read
Multithreading Concepts: Locks, Deadlock, Recursive Locks, and Daemon Threads