top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is the meaning of Reentrancy in operating system?

+3 votes
683 views
What is the meaning of Reentrancy in operating system?
posted Nov 21, 2013 by Luv Kumar

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+3 votes

A Reentrant Procedure is one in which multiple users can share a single copy of a program during the same period. Reentrancy has 2 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.

A reentrant procedure can be interrupted and called by an interrupting program, and still execute correctly on returning to the procedure.

answer Nov 21, 2013 by Salil Agrawal
...