[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: re-entrant programs
bazyar@teal.csn.org (Jawaid Bazyar) writes:
> 're-entrant' means that more than one process may execute the program
>at the same time. Usually the term is applied only to subroutines
>of a program.. recursive subroutines are reentrant, and that should
>give us a starting point.
Nitpick time!! Recursion does not imply reentrancy. You can have a recursive
routine that uses unarbitrated global data, which destroys its reentrancy.
> As I mentioned above, recursive subroutines. Usually, program
>segments that are reentrant store all variables on the CPU stack;
"Usually" is right. I just didn't want to let that general statement get by.
Todd Whitesel
toddpw @ cco.caltech.edu