Daily Term: Reentrancy
Reentrancy
Reentrancy refers to a function’s ability to be safely called again (e.g., recursively or by another thread) before its previous invocation completes, without causing issues. For example, a reentrant function avoids using shared mutable state, relying instead on local variables or parameters. Reentrancy is crucial for concurrency and interrupt handling, ensuring reliability, but non-reentrant functions can lead to bugs like data corruption if interrupted.
Date: 2025-08-20