Question

Why is the process state (i.e., PC, SP, EFLAGS, general registers) kept in the Kernel Interrupt...

Why is the process state (i.e., PC, SP, EFLAGS, general registers) kept in the Kernel
Interrupt Stack before handling an Interrupt? Why could we not store it in the user memory?
What is the risk?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Due to following reasons we cannot have the process state (i.e., PC, SP, EFLAGS, general registers) in the user memory:-

  • OS cannot trust user processes, as the user processes can be buggy or malicious
  • If the user processes crashes it should not affect the OS.
  • If there are many processes running at time then there can be full memory utilization in that case the OS should have memory left to run important instructions.
  • The OS needs to have fairness to all the user processes, so for that it will need have memory of its own.
Add a comment
Know the answer?
Add Answer to:
Why is the process state (i.e., PC, SP, EFLAGS, general registers) kept in the Kernel Interrupt...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Q1 (25): What challenges will be faced by application programmers in the absence of an operating...

    Q1 (25): What challenges will be faced by application programmers in the absence of an operating system? How is the interrupt vector used during interrupt processing? Please read Sections 2, 3 and 4 from the following website and briefly summarize it. https://minnie.tuhs.org/CompArch/Lectures/week05.html Why do we store CPU state (program counter and registers) in process control block? Explain. Please read the following article and briefly summarize it. https://www.geeksforgeeks.org/memory-layout-of-c-program/

  • Q1 (25): What challenges will be faced by application programmers in the absence of an operating...

    Q1 (25): What challenges will be faced by application programmers in the absence of an operating system? How is the interrupt vector used during interrupt processing? Please read Sections 2, 3 and 4 from the following website and briefly summarize it. https://minnie.tuhs.org/CompArch/Lectures/week05.html Why do we store CPU state (program counter and registers) in process control block? Explain. Please read the following article and briefly summarize it. https://www.geeksforgeeks.org/memory-layout-of-c-program/

  • Operating systems: please explain 1 (24) Multiple Choice(3 points for each): 1) In the interrupt systems....

    Operating systems: please explain 1 (24) Multiple Choice(3 points for each): 1) In the interrupt systems. What processing need be done by hardware when an interrupt occurs? A. Save remainder of process state information B. Restore process state information c. pushes PSW and PC onto control stack D. Restore old PSW and PC E None of the above. 2) In the distributed system, which of the following statement is true? A All the processors in the system share the memory....

  • Identify a process and state why it is very important to provide and follow the proper...

    Identify a process and state why it is very important to provide and follow the proper steps to carry out the process. What could happen if the process isn't carried out properly? What are some warnings involved in the process? As an example, think about medications and/or antibiotics that all of us have probably used at one time or another, after being diagosed with a cold or illness. When we pick up medicine from the local pharmacy, directions are stapled...

  • QT Spim question. Program and answer already given please explaine it. Please explain the reason why...

    QT Spim question. Program and answer already given please explaine it. Please explain the reason why each instruction was used throughout the program step by step given the prompt, what is its purpose to achive the goal asked in the prompt, why is written in that order. Please not just write to the side what each instruction means in words like load $t0 to $t1. I want to understand the program thoroughly. Thanks in advance Previous information needed to solve...

  • Module 8: Journal Assignment-Explaining Memory to a Child (20 points possible) Chapter 8 in your textbook...

    Module 8: Journal Assignment-Explaining Memory to a Child (20 points possible) Chapter 8 in your textbook starts off with a section on conceptualizing memory. In my PowerPoint lecture notes that I've posted, you will see that I've annotated a figure called the "Atkinson-Shiffrin Memory Model" on Slide #3 from Chapter 8; however, you will not find this figure in your book (assuming you have the 8th edition or higher). In contrast, Figure 8.1 from your textbook (found on page 233...

  • Module 8: Journal Assignment-Explaining Memory to a Child (20 points possible) Chapter 8 in your textbook...

    Module 8: Journal Assignment-Explaining Memory to a Child (20 points possible) Chapter 8 in your textbook starts off with a section on conceptualizing memory. In my PowerPoint lecture notes that I've posted, you will see that I've annotated a figure called the "Atkinson-Shiffrin Memory Model" on Slide #3 from Chapter 8; however, you will not find this figure in your book (assuming you have the 8th edition or higher). In contrast, Figure 8.1 from your textbook (found on page 233...

  • C Programming - Please Help us! Implementing Load Balancing, the 3 Base Code files are at the bot...

    C Programming - Please Help us! Implementing Load Balancing, the 3 Base Code files are at the bottom: Implementing Load Balancing Summary: In this homework, you will be implementing the main muti-threaded logic for doing batch based server load balancing using mutexes Background In this assignment you will write a batch-based load balancer. Consider a server which handles data proces- sing based on user requests. In general, a server has only a fixed set of hardware resources that it can...

  • Help needed for Project procurement to answer Questions 1-10: Building Trust   Pauly Shore is a junior...

    Help needed for Project procurement to answer Questions 1-10: Building Trust   Pauly Shore is a junior procurement manager for the Goldwell Restaurant Group. He is responsible for the procurement of IT commodities for the data center. After months of negotiating with the three best and lowest-priced bidders for the computer paper contract, Pauly selected Frankie’s Paper Company.  Pauly’s decision was made after a round of golf at Frankie’s country club. On the eighteenth hole, Frankie extended his hand to Pauly and...

  • Mountain Paths (Part 1) Objectives 2d arrays Store Use Nested Loops Parallel data structures (i.e...

    Mountain Paths (Part 1) in C++ Objectives 2d arrays Store Use Nested Loops Parallel data structures (i.e. parallel arrays … called multiple arrays in the zyBook) Transform data Read from files Write to files structs Code Requirements Start with this code: mtnpathstart.zip Do not modify the function signatures provided. Do not #include or #include Program Flow Read the data into a 2D array Find min and max elevation to correspond to darkest and brightest color, respectively Compute the shade of...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT