Wednesday, May 6, 2020

Memory Management Requirements Free Essays

When talking about memory management, it is important to first understand what it is. When operating in a uniprogramming system, the main memory, commonly referred to as random access memory (RAM), is divided into two different parts. The first part is assigned to the operating system (OS), while the second part is assigned to the program currently being executed. We will write a custom essay sample on Memory Management Requirements or any similar topic only for you Order Now When operating in a multiprogramming system, the OS portion must further be subdivided to accommodate multiple processes being executed simultaneously. This subdivision is done dynamically be the OS and that is what is referred to as memory management. Memory management is intended to fulfill a set list of requirements. These requirements are: relocation, protection, sharing, logical organization, and physical organization. This paper will cover each requirement individually. Relocation When a program executes, it is not always the only process accessing the main memory. There are generally many different processes that need access. And so, these processes get swapped around to keep active processes in the main memory in order to maximize the processor usage. When a process gets swapped out for another process, and will need to return, it is not realistic to expect that it will return to its original location in the main memory. This is where relocation plays a vital role. As processes get swapped out, and then back in, relocation moves them around to ensure that there is enough room for everyone to play. Protection Protection refers to maintaining the integrity of a process. A process cannot access a function of another process without specific permission before hand. As swapping and relocation occur, the likelihood of corrupting a process with another one increases. Protection refers to the protocols that keep that from happening. Sharing Sometimes multiple processes may need to access the same portion of main memory. In instances where processes are executing the same program, it is advantageous to allow them to access the same copy of the program, rather than them each having their own. Sharing has a delicate balance that it shares with protection. That is why control over sharing capabilities is very important. Local Organization Both main memory and secondary memory are organized as linear. This creates a conflict, because most programs are organized into modules. Local organization helps the OS and computer effectively deal with programs and data that are organized into modules. This provides a number of benefits. Modules can then be written and compiled independently, protection can be provided in the form of read/execute only modules, and it allows for easy sharing among modules. Physical Organization Physical organization is the core concept in memory management. To understand physical organization, you must first understand the two layers of memory in a system. Main memory refers to memory that is intended for quick processing, and is volatile, meaning that is loses all data when power is not applied. The second of these layers is referred to as secondary memory, which is slower, but is intended for long term storage. Because the programmer of a user program cannot possible know how much memory is available at the time of execution, and that there may be insufficient memory, the responsibility of managing physical organization belongs to the system. How to cite Memory Management Requirements, Papers Memory Management Requirements Free Essays Memory Management Requirements POS 355 Memory Management Requirements The following paper will discuss the memory requirements in a computer system. Proper amount of memory must be available to minimize the amount of processor idle time while input output devices are preparing to respond. According to Stallings (2012) the requirements of memory management must satisfy the relocation, protection sharing, logical organization, and physical organization. We will write a custom essay sample on Memory Management Requirements or any similar topic only for you Order Now In order to accommodate multiple processor events, addresses in the main memory are swapped out and relocated to different address in the main memory. This type of event is called relocating. According to Stallings (2012), the operating system requires knowledge of â€Å"the location of process control information and of the execution stack, as well as the entry point to begin execution of the program for this process (Relocation, p. 307). Memory protection requirements are to be satisfied by the hardware rather than the operating system. The software is unable to anticipate all of the references made by the programs. Read and write restrictions are made to control this area. Sharing occurs when many different process need to access same areas of the main memory at the same time. Memory management allows this to be done without compromising the integrity of any of the data. Logical organization of the main memory is done in a linear fashion making it less confusing when programs must access it. Since programs are usually created in modules, they must be organized for execution in order for the system to benefit from their creation. If organized properly, the programs can be executed simultaneously and everybody can be happy. Main memory and secondary memory are the areas involved in the physical organization of this area. The processor must be located in one specific area in order to access the registers of the system as opposed to the data discs. This set up will ensure the smooth flow of data in the system. In conclusion, all components of a system are set up in a way to ensure the smooth efficient flow of data, limiting the amount of idle time as well as to ensure the minimal of corrupt data. Memory management requirements are put in place to ensure that all system requirements are met and idle time is eliminated. References Stallings, W. (2012). Operating systems: Internals and design principles (7th ed. ). Boston, MA: Prentice Hall. How to cite Memory Management Requirements, Essay examples

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.