Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Lecture
Register,
Cache,
Main Memory
External
Hard disk. Memory
CD-Rom,DVD,
Internal Storage
Memory Management Sadaqat Ali Khan Bangash 4
Memory Hierarchies ….
• Registers
– These temporary locations within the CPU are
extremely fast, very small, very expensive & volatile.
–
• Cache
– Buffer memory regions between CPU & Main
Memory.
Main Memory
– Main Memory also called Primary Memory, Random
Access Memory (RAM). Hundreds of Megabytes of
Medium Speed & Volatile
Secondary Memory
– Hundreds of Gigabytes of memory with Slow speed
Logical Address
An address generated by the CPU
This normally refers to an instruction or data
within the process address space
Physical Address
An address for a main memory location where instruction
or data resides
Logical Physical
Address Address
CPU
346 14346
Base or
Relocation
Register Value:
14000
14000
The MMU will check if the logical address is within the limit
specified by the limit register. If yes, it will add the value of the
relocation register. If no, it will give an addressing error or a
trap.
• Advantages:
– Less time needed to load a program
– Less memory space needed for program
• Disadvantages:
– More run-time activity. Lot of I/O requests are made
which is time consuming.
• Advantages:
• Less time needed to load a program
• Less memory space needed
• Less disk space needed to store binaries
• Updated libraries are used without
recompiling a program
• Disadvantages:
• More run-time activity resulting in slower
program execution
• Main Memory
• Secondary Memory
• The area where swapped processes are kept in secondary
memory is known as Swap Space
process 8 process 10
Questions