Question

In: Computer Science

Suppose a user wants to do a system call. Assume that the service routine of this...

Suppose a user wants to do a system call. Assume that the service routine of this system call is at physical address 500., instead of executing a system call, the user simply jumps to this location 500.

Assume that logical and physical addresses are the same and no memory protection is in place, i.e., cpu does not check that this address 500 is beyond the user’s memory space.

Will something go wrong while the service routine executes?

Solutions

Expert Solution

Dear Student i understood the problem and can interpret as given below.To thoroughly understand the answer to this solution you must first know the difference between logical and physical addressing.Please go through the information given below.

Logical Address is produced by CPU while a program is running. The intelligent location is virtual location as it doesn't exist genuinely, in this way, it is otherwise called Virtual Address. This location is utilized as a kind of perspective to get to the physical memory area by CPU. The term Logical Address Space is utilized for the arrangement of all consistent locations produced by a program's viewpoint.

The equipment gadget called Memory-Management Unit is utilized for planning sensible location to its relating physical location.

Physical Address recognizes a physical area of required information in a memory. The client never legitimately manages the physical address however can access by its relating consistent location. The client program creates the intelligent location and imagines that the program is running in this legitimate location yet the program needs physical memory for its execution, accordingly, the sensible location must be planned to the physical location by MMU before they are utilized. The term Physical Address Space is utilized for all physical delivers relating to the legitimate locations in a Logical location space.

MMU plot

Planning virtual-address to physical-addresses

Contrasts Between Logical and Physical Address in Operating System

The essential contrast among Logical and physical location is that Logical location is produced by CPU in context of a program though the physical location is an area that exists in the memory unit.

Intelligent Address Space is the arrangement of all legitimate locations created by CPU for a program though the arrangement of all physical location planned to relating coherent locations is called Physical Address Space.

The coherent location doesn't exist genuinely in the memory though physical location is an area in the memory that can be gotten to truly.

Indistinguishable coherent locations are created by Compile-time and Load time address restricting strategies while they contrasts from one another in run-time address restricting strategy. If you don't mind allude this for subtleties.

The consistent location is produced by the CPU while the program is running though the physical location is figured by the Memory Management Unit (MMU).\

Dear Student by now I assume you would have gone thoroughly gone through the above information and would have interpreted easily with the following question.Hope all your questions have been answered if not feel free to ask any of the doubts in comment section and if you have liked the above information please do upvote.Thanks a ton!


Related Solutions

Suppose that the WTAMU post-office wants to develop a new system that will give its user...
Suppose that the WTAMU post-office wants to develop a new system that will give its user more on-line experience. The post office plans to serve WTAMU students identifying through their ID, or with help from the university information. The new system will facilitate as like the IT service center, a student/faculty/staff will be allowed to create tokens to send/receive their mails, and the post office workers will collect the mail from the service location. You have been put in charge...
Purpose For many users, the system is the user interface. Everyone wants a system that is...
Purpose For many users, the system is the user interface. Everyone wants a system that is easy to learn and use. It is the analyst’s responsibility to ensure that the user interface will be designed in a way to support the user’s interface needs.   In this milestone you will explore the guidelines for user interface design. The analyst must consider a variety of interface formats. These include how data gets entered into the system (input design) and how data or...
3. In a typical service routine, to go back to the previous code we do RTI....
3. In a typical service routine, to go back to the previous code we do RTI. Suppose we replace RTI by a sequence of two instructions: POPpc POPpsw The POPpc instruction will pop the PC value from the control stack (assume that PC, PSW values are on the stack in the right order) and put it into the PC register. The POPpsw instruction will pop the PSW value from the control stack and put it in the PSW register. Assume...
.......Subject Java..... main() main() will ask the user for input and then call functions to do...
.......Subject Java..... main() main() will ask the user for input and then call functions to do calculations. The calculations will be returned to main() where they will be printed out. First function Create a function named computeBill that receives on parameter. It receives the price of an item. It will then add 8.25% sales tax to this and return the total due back to main(). Second function Create another function named computeBill that receives 2 parameters. It will receive the...
Suppose a hospital unit wants to offer a new service. The service has a fixed cost...
Suppose a hospital unit wants to offer a new service. The service has a fixed cost of $200,000. The service has three DRGs. The number of patients for a specific DRG, their average variable costs per unit, and their average price per unit are given in the table below. No. of Patients Variable cost Rate $ Price Rate $ DRG1 200 300 450 DRG2 400 1200 1500 DRG3 350 900 1150              Find the break-even volume. What is the assumption...
Suppose a committee wants to decide the service award for last year. There are a total...
Suppose a committee wants to decide the service award for last year. There are a total of 6 candidates, Alice, Brigitte, Chris, Dave, Emma, and Frank. Among the six candidates, Alice, Brigitte, and Emma are females and the rest three are males. The committee must decide exactly three people to be awarded, and the nominations must meet all of the following criteria. At least one female must be nominated; Chris and Emma cannot be both nominated; Since Alice and Brigitte...
2 Franchise Value a) Suppose that Mark Cuban wants to purchase the Mavericks in 2000 (call...
2 Franchise Value a) Suppose that Mark Cuban wants to purchase the Mavericks in 2000 (call this year 0), and he expects to receive $400,000 in profits in years 1, 2, and 3 (each year). Now suppose that value of the Mavericks in year 3 is $500 million and that the interest rate is 4%. What is price that Mark would pay to make him break even in 3 years (i.e. that makes E[B] – p =0)? b) Now, suppose...
Suppose that a car company wants to determine the importance to consumers for service like OnStar,...
Suppose that a car company wants to determine the importance to consumers for service like OnStar, which offers drivers a wifi connection (among other things). Small/preliminary studies have concluded that about 69% of people would like an wifi connection in there car. A) use the given preliminary estimate to determine the sanple size required to estimate the proportion of adult Americans who would like wifi capablities in their car to within .02 with 95% confidence. B) how would the interval...
The following program calls the fork() system call to create a child process. Suppose that the...
The following program calls the fork() system call to create a child process. Suppose that the actual pids of the parent process and child process are as follows: Parent process: 801 Child process:   802 (as returned by fork) Assume all supporting libraries have been included. => Use the answer text field to write the values of the pids printed at lines 1, 2, 3, and 4 (indicate each line number and the value printed). int main() {      pid_t pid,...
An Internet user wants to know the average download speed for his Internet connection. Suppose we...
An Internet user wants to know the average download speed for his Internet connection. Suppose we know that the standard deviation is 7 mbps. He runs a speed test everyday at noon for 30 days. The average speed of the tests was 13.68 mbps. Construct a 95% confidence interval for the average speed of this Internet connection at noon.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT