re-entrant

(redirected from re-entrants)
Also found in: Dictionary, Thesaurus.

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".
References in periodicals archive ?
We calculate The re-entrant rate as the difference between the average unemployment ratio (that is.
Several clear views emerged among potential re-entrants when asked about changes in nursing practice since their careers began.
Both respondents and re-entrants acknowledged the difference between candidates.
"According to [Petitioner], since that before-or-after clause made it clear that the statute applied to aliens who reentered before the enactment date of the earlier version, its elimination in the current iteration shows that Congress no longer meant to cover pre-enactment re-entrants. [Cite].
For many jobseekers, especially re-entrants, getting ready to join the working world can seem daunting.
This reduces the number of variables considerably, since (nearly) all re-entrants were female.
Additional evidence that increased labor force attachment may reduce female unemployment was found by Jones (1983) in a study of unemployment among re-entrants. She found that the amount of prior work experience directly influences the probability that a woman who is temporarily out of the labor force will re-enter the work force without suffering a spell of unemployment.
Since July 3, 2016, new entrants and re-entrants have faced the same eligibility requirements as other claimants in the region where they live (between 420 hours to 700 hours of insurable employment).
Exposing a series of re-entrants and crevices, pieces jutting viciously and delving insidiously.
In addition, data on the supply of skilled workers, such as graduates of educational and training programs or labor market re-entrants with particular skills, are incomplete or unavailable for most occupations.
The share of unemployed workers who were labor market re-entrants in June was the highest rate since before the Great Recession and remains 0.8 p.p.
The unemployment rate edged down to 9.7 percent from 9.9 percent, as the number of re-entrants to the job market declined by 286,000 in May and the labor force participation rate decreased to 65 percent from 65.2 percent.