logo

CuriousTab

CuriousTab

Discussion


Home Technical Questions Operating Systems Comments

  • 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 


  • Operating Systems problems


    Search Results


    • 1. Which command displays the present workig directory in UNIX?

    • Options
    • A. $who
    • B. $pwd
    • C. $who are you
    • D. None
    • Discuss
    • 2. Which among the following are the components of windows registry?

    • Options
    • A. Keys
    • B. SubKeys
    • C. Values
    • D. All the above
    • Discuss
    • 3. The PS command prints the process status for only some of the running processes.

    • Options
    • A. TRUE
    • B. FALSE
    • Discuss
    • 4. What is a zombie?
    • Discuss
    • 5. getppid() system call is used to bias the existing priority of a process

    • Options
    • A. TRUE
    • B. FALSE
    • Discuss
    • 6. What is thrashing?
    • Discuss
    • 7. What are short, long and medium-term scheduling?
    • Discuss
    • 8. What is the Translation Lookaside Buffer (TLB)?
    • Discuss
    • 9. What is the resident set and working set of a process?
    • Discuss
    • 10. What is cycle stealing?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment