Memory Management Flashcards
Define the following terms:
Page
Frame
Segment
Frame: A fixed length block of memory
Page: A fixed length block of data that resides in secondary memory (eg. disk)
Segment: A variable length block of data that resides in secondary memory.
True or False
A page of data may be temporarily copied into a frame of main memory
True
Define Segmentation
This process involves an entire segment being temporarily copied into main memory.
-something to remember-
In a uniprogramming system, main memory is divided into two parts: one part
for the operating system (resident monitor, kernel) and other part for the program
currently being executed.
-something to remember-
In a multiprogramming system, the “user” part of
memory must be further subdivided to accommodate multiple processes. The task
of subdivision is carried out dynamically by the operating system and is known as
memory management .
What are the five requirements that memory management should satisfy?
- Relocation
- Sharing
- Protection
- Physical Organization
- Logical Organization
Describe the concept of relocation.
Swapping active processes in and out of memory to maximize utilization.
We cannot know ahead of time where a process may be in memory thus we must allow the possibility for processes to be swapped around for optimization.
Describe the concept of protection.
Each process must be protected from the interference of other processes.
Process need permission to acquire a space in memory.
Why is memory protection a hardware responsibility and not a software responsibility ?
This is because the OS cannot anticipate all of the memory references that a program will make. Even if such anticipation were possible, it would be prohibitively time consuming to screen each program in advance for possible memory-reference violations. Thus, it is only possible to assess the permissibility of a memory reference (data access or branch) at the time of execution of the instruction making the reference. To accomplish this, the processor hardware must have that capability.
-something to remember-
In one sense, satisfaction of the relocation requirement increases the difficulty of satisfying the protection requirement
True or False
Without special arrangement, a program in one process cannot access the data area of another process.
True
Describe the concept of sharing
This deals with allowing each process to access the same copy of the program rather than have its own separate copy. This access should be controlled so it doesn’t violate the protection requirement
What are three (3) benefits to using logical organization ( modules)
- Different modules can have different protection measures (modifiable and non modifiable)
- Modules can be shared among processes which makes it easier for users to specify the sharing that is desired
- Modules can be run independently
-something to remember-
Main memory is fast at a high cost and viol does not provide permanent storage.
Secondary memory is slower, cheaper and non vi
Why is it impractical to make a programmer responsible for the flow to and from main memory and secondary memory.
- The program and its data may be to large for main memory and in this case, the programmer will have to use a process known as overlaying to give one space in memory to multiple modules. Then has the responsibility of switching them in and out. This is very time consuming
- The programmer cannot know how at the time of coding, how much memory will be available and where it is available