What do you understand by the concept of Reentrancy

What do you understand by the concept of Reentrancy?

E

Expert

Verified

It is a useful, memory-saving method for multi-programmed timesharing systems. A Reentrant method is one in which many users can share a single copy of a program throughout the same period. Reentrancy has two key aspects: The program code can’t transform itself, and the local data for each and every user process should be stored separately. Therefore, the permanent part is the code, and the impermanent part is the pointer back to the calling program and local variables employed by that program. Each and every execution instance is known as activation. This executes the code in the permanent part; however has its own copy of local variables or parameters. The temporary part associated with all activation is the activation record. Usually, the activation record is kept on the stack.

Note: A reentrant method can be interrupted and called through an interrupting program, and still execute correctly on returning to the method.

   Related Questions in Operating System

©TutorsGlobe All rights reserved 2022-2023.