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...
Create a system which ends when the user wants it to. After a user has used...
Create a system which ends when the user wants it to. After a user has used this system, there is an option of another user using it. The system should ask whether you want to continue or not. Below is a sample of the input/output system. Are you a student or a librarian? Hit 1 for student and 2 for librarian. $1 Enter Name: $William How many books do you want to take? $4 What books do you want to...
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...
At the end of a service routine, suppose we have two RTI instructions one after another....
At the end of a service routine, suppose we have two RTI instructions one after another. Will something go wrong? Explain.
Assume a user wants to classify numbers in terms of whether they are “divisible by 2”,...
Assume a user wants to classify numbers in terms of whether they are “divisible by 2”, “divisible 3”, “both visible by 2 and 3” and “neither divisible by 2 nor 3”. Clearly for each integer, only one of the classes is most accurate. Write a SPIM program which allows a user to enter 5 integers and for each of them, determines which of the mentioned classes it belongs to.
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...
.......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 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...
Assume that your company wants to enter into a contract with a regional cell service provider....
Assume that your company wants to enter into a contract with a regional cell service provider. Your company wants to ensure that the contract is for a fixed term of 5 years, and cannot be terminated before that first 5-year term expires, and afterwards is renewable for 5-year terms unless terminated by one year's notice. TELUS does not want the parties to have the ability to terminate the agreement after only one year. The termination clause should only apply to...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT