logo

CuriousTab

CuriousTab

Discussion


Home Technical Questions Operating Systems See What Others Are Saying!
  • Question
  • Explain the concept of Reentrancy?


  • Correct Answer
  • 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 Note: A reentrant procedure can be interrupted and called by an interrupting program, and still execute correctly on returning to the procedure 


  • More questions

    • 1. In the relational model, relationships between relations or tables are created by using:

    • Options
    • A. composite keys.
    • B. determinants.
    • C. candidate keys.
    • D. foreign keys.
    • Discuss
    • 2. What does microprocessor speed depend on?
    • Discuss
    • 3. What does RSI stand for?
    • Discuss
    • 4. Which Stack is used in 8086?
    • Discuss
    • 5. What is object repository?
    • Discuss
    • 6. Which is the Stack used in 8085?
    • Discuss
    • 7. What does GUI stand for?
    • Discuss
    • 8. What is the main reason the OSI Model was created?
    • Discuss
    • 9. Ethernet uses which topology

    • Options
    • A. Star
    • B. Bus
    • C. Twisted pair
    • D. Both B & C
    • Discuss
    • 10. What are various scheduling queues?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment