Explain the concept of Reentrancy?

Answer Posted / guest

It is a useful, memory-saving technique for multiprogrammed
timesharing systems. 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.

Is This Answer Correct ?    14 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different types of semaphores?

644


What is a boot-strap program?

631


What is system bus? Explain a few related terms.

596


What is deadlock? Explain.

573


What is the x86 folder?

526






Why interprocess communication is required?

535


What is process synchronization?

617


What happens if you install 64 bit on 32?

509


What is the purpose of using the yield method of thread class?

564


How do I search for a pattern in vi?

511


What's the difference between 32 and 64 bit?

522


Can a bad cpu cause blue screen?

568


At what mode the fault handler executes?

567


What first program that the computer runs when the power is turn on?

569


For a deadlock to occur what are the necessary conditions

622