Saturday, September 7, 2019

Memory Management Paper Essay Example | Topics and Well Written Essays - 500 words

Memory Management Paper - Essay Example Protection helps prevent any malicious or malfunctioning program to make any unauthorized access to memory portions and cause interference in other program’s operation causing system level errors. While protection limits access to memory, it is required that the protection scheme provides some flexibility to allow for sharing of memory space as well e.g. of read only programs. A number of cooperating processes that may be executing the same program should be able to access the same part of main memory containing the same main program instead of having individual duplicates of the same program which would waste a lot of the precious memory space. Concurrency control must be maintained in case of sharing of program data. Relocation is responsible for allocating a user process a place in memory by converting the program’s logical address to physical address. During swap in, it is necessary to relocate a process from the physical disc to main memory. Usually a program occupies the same place in memory when swapped in. However, it may happen that during a swap in, the usual memory place of a program may not be available. So, in that case, the program will have to be relocated to a new memory place and memory references would have to be translated to the actual physical address. Memory is required to be organized in a way that the programs with read only elements are stored in a separate portion within it. Secondly, memory is divided into two types depending on the speed of access; main memory and secondary memory. Main memory is volatile and allows for the programs to be accessed quickly while the secondary memory is long term storage and allows slow access for the long term stored

No comments:

Post a Comment

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