In: Computer Science
Memory refers to the physical devices used to store programs or data. Main memory is used for the information in physical systems which function at high speed (i.e. RAM), as compared to secondary memory, which are physical devices for program and data storage which are slow to access but offer higher memory capacity.
The cache memory is an intermediate level between the main memory and the processor. The goal is to store the most frequently and most recently accessed data in the upper-level unit (cache) to make returning to it much faster. Can this concept be used in any real life applications? If so, discuss its use and advantages.
Answer:
Memory heirachy techniques are used in Building search Engines.
Search Engines keep track of addresses of frequently used pages to improve response time. That to meet the need of users the frequently used page addresses are placed in processor registers or in cache memory in order to acces them quickly .
Also the pages accessed together or browsing patterns are analysed to imporve the speed of search engines.
In operating system, page replacement algorithms also use this approach to access frequently used pages quickly to improve the speed of computations.
The items which are not frequently used are stored in secondary storage , when ever they are needed then are brought to main memory and then they are restored after the use.
While implementing splay tree, for storing file indices the frequently used file indices are brought near to the root to improve the speed of next access.
Advantages:
Improve the speed of computation.
Improve the throughput and response time.
Improve the requirement of the users who are using search engines.
Thank you.