Reentrant
A program or routine is reentrant if multiple invocations can safely run on multiple processes or on a single processor system, where it can be interrupted mid-execution and then safely be called again (re-entered) before previous invocations complete execution.
Approaches
- Make the operation idempotent.
- Make the operation atomic, wrapping it in a transaction such that interrupted invocations do not mutate state.
References
Backlinks