Classifications of Locality of References Principles Flashcards
What is principality of locality
Principle of locality or locality of reference is the tendency of a processor to access the same set of memory locations repetively over a short period of time
Types of locality
Temporal locality: Here a resource that is referenced at one point in time is referenced again soon afterwards
Spatial Locality: Here the likelihood of referencing a storage location is greater if a storage location near it has been recently refereence
Sequential Locality: Here storage is accessed sequentially, in descending or ascending order. This leads to memory hierachy
What is memory hierarchy
Memory hierarchy is a structure that uses multiple levels of memories; as the distance from the CPU increases, the size of the memories and the access time both increases.
The faster
Main memory is implemented from?
It is implemented from Dynamic Random Access Memory(DRAM)
The level closer to the processor(caches) uses ?
SRAM
Mention the levels in memory hierachy
CPU Registers
Static Random Access Memory
Main Memory
Local Disk
Remote Secondary Storage
Describe CPU Registers
They are at the top most level of this hierarchy, the hold the most frequently used data.
The are very limited in number and are the fasters
They are often used by the CPU and the ALU for performing arithmetic and logical opertions, for temporary storage of data.
What are registers
A register is a digital circuit with two basic functions: data storage and data movement.
Types of registers
Parallel and serial registers
Different manner:
Serial-in/Serial-out
Parallel-in/serial-out
Serial - in / pararell-out
Universal parallel-in/ parallel out
Describe SRAM
SRAM is a type of RAM that holds data in a static form, that is, as long as the memory has power.
SRAM stores a bit of data on four transistors using tow cross-coupled inverters.
What is Main Memory or DRAM
Dynamic random access is a type of memory that is typically used for data or program code that a computer processor needs to function.
Pro of DRAM
Simple design, speed and low cost in comparison to other types
Con of DRAM
Volatility and high power consumption
Describe Local Disks
A local drive is a computer disk drive that is installed directly within the host or the local computer
Describe Remote Secondary Storage
This includes Distrubuted File System(DFS) and online storage like cloud.
The storage area is vast with low cost but larger access time.