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

How do I scan a usb drive for errors?

765


Does overheating cause blue screen?

764


Which one you will use to implement critical section?

1950


What is feram?

793


What is Real Time Operating System (RTOS)? What are the advantages of RTOS?

819


What is a phase change memory?

757


Explain the trda?

758


How does disk operating system work?

726


What is operating system in short answer?

748


Can a laptop have 32gb of ram?

700


Is 32 gb ram enough for gaming?

665


Is microsoft edge replacing internet explorer?

730


Is it ok to interrupt chkdsk?

754


What are 4 types of operating systems?

789


Explain the Difference between Process and a Thread.

780