PDA

View Full Version : Explain the concept of Reentrancy?



BenWood
12-27-2016, 05:34 AM
Explain the concept of Reentrancy?

arianagrand
12-27-2016, 07:54 AM
I have read somewhere, Reentrant is an adjective that describes a computer program or routine that is written so that the same copy in memory can be shared by multiple users.

loveguruindia
12-28-2016, 06:06 AM
Thanks dear

Happy New Year In Advance

bidaddy
05-07-2017, 11:56 AM
It is a useful, memory-saving technique for multiprogrammed time sharing systems. A Reentrant Procedure is one in which multiple users can share a single copy of a program during the same period. Reentrancy has2 key aspects: The program code cannot modify itself, and the local data for each user process must be stored separately. Thus, the permanent part is the code, and the temporary part is the pointer back to the calling program and local variables used by that program. Each execution instance is called activation. It executes the code in the permanent part, but has its own copy of local variables/parameters. The temporary part associated with each activation is the activation record. Generally, the activation record is kept on the stack.<br>Note: A reentrant procedure can be interrupted and called by an interrupting program, and still execute correctly on returning to the procedure