Think about this from the OS point of view. When an interrupt comes in, where is the data? That is not the answer, but a good hint. Given what you know about interrupt processing, explain why it is critical to have both a user-mode stack and a kernel-mode stack. (This means that the stacks are separated by address space. The user stack is in user memory, and the kernel stack is in kernel memory). Note that "critical" does not mean "a good idea". Correct operation is at stake. It's critical to have both a user-mode stack and a kernal mode stack because when an interrupt occurs there needs to be a switch from of an the user-mode stack to Kernal mode stack to handle it. If there was only one stack between the usermode and kernal mode, during the processing interrupt, important information may be overwritten and the space in the stack may run out. Having a stack for each with its own information will help ensure data integrity.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Please provide the correct answer for this question that is incorrect, explain why my answer is wrong and what I can do differently next time so that I can do better next time. 

Think about this from the OS point of view. When an interrupt comes in, where is the
data? That is not the answer, but a good hint.
Given what you know about interrupt processing, explain why it is critical to have both a user-mode
stack and a kernel-mode stack. (This means that the stacks are separated by address space. The user
stack is in user memory, and the kernel stack is in kernel memory). Note that "critical" does not mean
"a good idea". Correct operation is at stake.
It's critical to have both a user-mode stack
and a kernal mode stack because when an
interrupt occurs there needs to be
a switch from
of
an
the user-mode stack to Kernal mode stack to handle
it. If there was only one stack between the usermode
and kernal mode, during the processing
interrupt, important information may be overwritten and
the space in the stack may run out. Having a stack for
each with its own information will help ensure data integrity.
Transcribed Image Text:Think about this from the OS point of view. When an interrupt comes in, where is the data? That is not the answer, but a good hint. Given what you know about interrupt processing, explain why it is critical to have both a user-mode stack and a kernel-mode stack. (This means that the stacks are separated by address space. The user stack is in user memory, and the kernel stack is in kernel memory). Note that "critical" does not mean "a good idea". Correct operation is at stake. It's critical to have both a user-mode stack and a kernal mode stack because when an interrupt occurs there needs to be a switch from of an the user-mode stack to Kernal mode stack to handle it. If there was only one stack between the usermode and kernal mode, during the processing interrupt, important information may be overwritten and the space in the stack may run out. Having a stack for each with its own information will help ensure data integrity.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education