Reentrant
A function that can be safely called recursively or from multiple threads concurrently without corruption.
A reentrant function keeps all state in local variables or parameters—it doesn't modify global or static data in unsafe ways. This makes it safe for concurrent execution. Non-reentrant functions may corrupt their own state during execution, leading to race conditions. A reentrant mutex allows the same thread to acquire the lock multiple times without deadlock.