re-entrant


Also found in: Dictionary, Thesaurus, Wikipedia.

re-entrant

(programming)
Used to describe code which can have multiple simultaneous, interleaved, or nested invocations which will not interfere with each other. This is important for parallel processing, recursive functions or subroutines, and interrupt handling.

It is usually easy to arrange for multiple invocations (e.g. calls to a subroutine) to share one copy of the code and any read-only data but, for the code to be re-entrant, each invocation must use its own copy of any modifiable data (or synchronised access to shared data). This is most often achieved using a stack and allocating local variables in a new stack frame for each invocation. Alternatively, the caller may pass in a pointer to a block of memory which that invocation can use (usually for outputting the result) or the code may allocate some memory on a heap, especially if the data must survive after the routine returns.

Re-entrant code is often found in system software, such as operating systems and teleprocessing monitors. It is also a crucial component of multithreaded programs where the term "thread-safe" is often used instead of "re-entrant".
This article is provided by FOLDOC - Free Online Dictionary of Computing (foldoc.org)
References in periodicals archive ?
Seven-year follow-up after catheter ablation of atrioventricular nodal re-entrant tachycardia.
* Model T with re-entrant corners is more vulnerable to earthquake damage, when compared to all other models.
antiarrhythmic drug therapy in patients with symptomatic atrioventricular nodal re-entrant tachycardia: a randomized, controlled trial.
Dang, "Scheduling re-entrant lines based on GA and integrated rules," Computer Engineering, vol.
The predictions for stress fields were compared with birefringence measurements and showed reasonable quantitative agreement with experimental data although some discrepancy was found near the re-entrant corner, where the stress was overestimated.
Among the topics are biophysical principles and properties of cryoablation, catheter cryoablation for atrioventricular nodal re-entrant tachycardia, preventing phrenic nerve palsy during cryobaloon ablation for atrial fibrillation, treating accessory pathways, and treating miscellaneous arrhythmias.
4c and 4d), a re-entrant jet formation is visible from the [v.sub.mp] profile.
He attended specialist entrant and re-entrant officer training in 2004 and at RAF College in Cranwell.
Lakes, "Analysis of elastic modulus of conventional foams and of re-entrant foam materials with a negative Poisson's ratio," International Journal of Mechanical Sciences, vol.37, no.1, pp.51-59, 1995.
If you are a professional who has worked behind a video mixing desk, prepare to re-evaluate what you thought was possible with a video mixer.As a teaser, here's what the Tricaster 8000 does: It features eight re-entrant M/E busses.
NanoSpire has pioneered controlled formation and aiming of high-speed cavitation re-entrant jets, resulting in four recently issued patents.
BP HAS BEEN A LATE ENTRANT (RE-ENTRANT TO BE MORE PRECISE) IN THE EXPLORATION AND PRODUCTION INDUSTRY IN OMAN.