A Computer system can be classified into following groups:
- Internal memory
- Primary memory
- Secondary memory
INTERNAL MEMORY refers to the registers of CPU which hold temporary results. These registers are very fast.
PRIMARY MEMORY is the storage area where all the programs are executed. The CPU can directly access only those items that are stored in primary memory. Primary memory is fast but slower than internal registers by factor of 10. In short period of time addresses generated by CPU have the tendency to get clustered around small regions in main memory. This phenomenon is known as locality of reference. Hence these days a small but fast memory called cache memory is installed between CPU and primary memory.
SECONDARY MEMORY refers to storage medium like hard disks, CDs etc
Memory has two major access modes:
- Sequential access mode: Here memory can be accessed only in serial order i.e. if we have to access 4th memory location then we first would have to move to first three locations and skip them and only then we can access the 4th location. This is also called serial access mode. Here access time depends on the location. If location is away from the starting point of the memory then access time would be more. E.g. magnetic tape
- Random access mode: Any memory location can be accessed at random i.e. if we have to access 4th location then we can directly go to 4th location and access it. So access time is independent of the location we are accessing.
There is also a memory known as semi random access memory in which we have both the modes e.g. memory is divided in different tracks or sectors where we have a memory head for each sector. So we can move to any sector randomly but within the sector we can only move serially.
Memory can also be categorized as follow:
Passive memory: The memory in which no processing activities takes place. In this type of memory only 2 types of operations can be carried out: read & write. e.g. all the memories we use in daily life.
Active memory: This intelligent memory system has a small processor associated with every memory cell and this processor can perform operations like increment & addition and hence can improve the performance of the main processor.
PRIMARY MEMORY
This is a volatile memory (i.e. memory would lose its data whenever there is power loss). This can be of two types as shown:
DRAM
This is dynamic RAM where we store the bits in capacitors and we have to charge the capacitors after some time again and again as the charge stored on the capacitors gets leaked out. This is called dynamic RAM as we have to refresh the circuit again and again. Due to the fact that capacitors have to be charged again and again, there is a dedicated circuitry required just to refresh the capacitors. DRAM is cheaper that SRAM.
ROM (Read Only Memory)
This is a non volatile memory which is used to store permanent codes. Mainly this is of following types:
Mask ROM: This type of ROM is used by the manufacturers for programming and is mass produced, hence are quiet in-expensive.
PROM (Programmable Read only memory): This is the type of ROM which can be programmed by the user in the working environment but can not be re-programmed.
EPROM (Erasable programmable ROM): This type of ROM can be reprogrammed hence called so. This type of ROM is required when programs are in the development stage.
FLASH MEMORY
Flash memory is a solid-state, non-volatile, rewritable memory that works like RAM and a hard-disk drive combined. It resembles conventional memory, coming in the form of discrete chips, modules, or memory cards. Just like with DRAM and SRAM, bits of electronic data are stored in memory cells, and just like with a hard disk drive, flash memory is non-volatile, retaining its data even when the power is turned off. Although there are advantages over both RAM (its non-volatility) and hard disk (the absence of moving parts) but following are the reasons why flash memory is not a viable replacement for either.
- Because of its design, flash memory must be erased in blocks of data rather than single bytes like RAM.
- It has a higher cost
- The memory cells in a flash chip have a limited lifespan of around 100,000 write cycles, thus making it an inappropriate alternative to RAM for use as a PC s main memory.
CACHE MEMORY
This memory is used as an intermediate between CPU and RAM. It is fastest form of storage. It basically decreases the delay for interaction of CPU and RAM. First data is transferred to cache memory and then from cache memory data is used by CPU. The cache memory is implemented using SRAM. This is used to bridge the performance gap between processor and the RAM.
WRITE BACK CACHE: In this cache memory whatever the changes are made to the cache are not transferred immediately to main memory but changes are transferred to main memory only when corresponding data is to be replaced in the cache. It avoids unnecessary writes to the memory.
WRITE THROUGH CACHE: In this type of cache memory what ever changes are made to cache are transferred immediately to the main memory. This policy is easily implemented but may lead to unnecessary writes to the memory.
MEMORY HIERARCHY
Memory system is often designed using different technologies to achieve the optimum performance. So memory system is a multilevel organization. The following a typical computers’ memory hierarchy organization:
HIT RATIO (h)
It is defined as relative number of successful references to the cache memory. In rough words, if h=0.9, then it means that if we access cache memory for a particular data, then 9 out of 10 times we’ll be able to get it.
Q- Calculate the average access time if cache memory access time is 150ns and memory access time is 900 ns and we have the hit ratio for cache memory as h=0.8. Assume every time we go to main memory we’ll be get the data we want.
Ans: tav= h * tc + (1 – h)*(tc + tm)
As when there is cache hit then we’ll need to go to cache memory only for data hence only time tc is taken otherwise we would have to access main memory after unsuccessfully accessing cache memory so total time taken in this case would be tc + tm
So tav= 0.8 * 150 + (1 – 0.8) * 900 = 120 + 180 = 300 ns
If there had been no cache memory then average time taken would have been 900 ns as every time we would have to access main memory for data so tav= 900ns
So we see there is a 3 times increase in the performance of the system by employing CACHE memory in the hierarchy.
I may need your help. I tried many ways but couldn’t solve it, but after reading your article, I think you have a way to help me. I’m looking forward for your reply. Thanks.
Hiya, I am really glad I have found this info. Today bloggers publish just about gossips and web and this is really annoying. A good website with interesting content, this is what I need. Thank you for keeping this web-site, I will be visiting it. Do you do newsletters? Can’t find it.
Después de apagar la mayoría de los teléfonos móviles, se eliminará la restricción de ingreso de contraseña incorrecta. En este momento, podrá ingresar al sistema mediante huella digital, reconocimiento facial, etc.
I’ve recently started a website, the information you offer on this web site has helped me greatly. Thank you for all of your time & work. “Character is much easier kept than recovered.” by Thomas Paine.
Hey there! This post couldn’t be written any better! Reading through this post reminds me of my old room mate! He always kept chatting about this. I will forward this article to him. Fairly certain he will have a good read. Thank you for sharing!
My brother recommended I would possibly like this web site. He was totally right. This publish truly made my day. You can not imagine simply how so much time I had spent for this info! Thank you!
Hello my loved one! I want to say that this article is awesome, nice written and include almost all vital infos. I’d like to look more posts like this.
I¦ll immediately seize your rss feed as I can’t to find your email subscription link or e-newsletter service. Do you have any? Kindly allow me understand in order that I may just subscribe. Thanks.
I truly appreciate this post. I have been looking everywhere for this! Thank goodness I found it on Bing. You have made my day! Thx again
I have recently started a website, the information you provide on this site has helped me greatly. Thank you for all of your time & work.
Excellent blog right here! Additionally your site loads up fast! What web host are you using? Can I get your affiliate hyperlink in your host? I want my site loaded up as fast as yours lol
Hello there, I found your website via Google while searching for a related topic, your web site came up, it looks great. I’ve bookmarked it in my google bookmarks.
I will right away grasp your rss feed as I can’t to find your email subscription hyperlink or e-newsletter service. Do you’ve any? Please let me realize in order that I may subscribe. Thanks.
I’m so happy to read this. This is the type of manual that needs to be given and not the accidental misinformation that’s at the other blogs. Appreciate your sharing this greatest doc.
Outstanding post, I believe blog owners should acquire a lot from this website its really user pleasant.
Some truly good information, Gladiola I discovered this.
Great blog here! Also your site loads up fast! What web host are you using? Can I get your affiliate link to your host? I wish my site loaded up as fast as yours lol
Youre so cool! I dont suppose Ive learn something like this before. So good to find someone with some unique ideas on this subject. realy thank you for beginning this up. this website is one thing that is needed on the internet, someone with a little bit originality. helpful job for bringing one thing new to the web!
Java Burn: What is it? Java Burn is marketed as a natural weight loss product that can increase the speed and efficiency of a person’s natural metabolism, thereby supporting their weight loss efforts
Java Burn: What is it? Java Burn is marketed as a natural weight loss product that can increase the speed and efficiency of a person’s natural metabolism, thereby supporting their weight loss efforts
Hi, just required you to know I he added your site to my Google bookmarks due to your layout. But seriously, I believe your internet site has 1 in the freshest theme I??ve came across. It extremely helps make reading your blog significantly easier.
What Is Potent Stream? Potent Stream is a male health formula that helps to maintain healthy urinary and prostate health by killing off all the toxins in the body
As a Newbie, I am continuously searching online for articles that can help me. Thank you
Lottery Defeater is an automated, plug-and-plug lottery-winning software.
you’re really a good webmaster. The site loading speed is incredible. It seems that you’re doing any unique trick. In addition, The contents are masterpiece. you have done a excellent job on this topic!
I am not very superb with English but I find this really leisurely to interpret.
whoah this blog is magnificent i love reading your articles. Stay up the good paintings! You recognize, lots of people are looking round for this information, you can aid them greatly.
I¦ve been exploring for a little for any high-quality articles or weblog posts on this kind of space . Exploring in Yahoo I eventually stumbled upon this web site. Reading this information So i am satisfied to convey that I’ve an incredibly good uncanny feeling I discovered exactly what I needed. I so much indisputably will make certain to do not forget this web site and provides it a glance regularly.
Currently it appears like Movable Type is the best blogging platform out there right now. (from what I’ve read) Is that what you’re using on your blog?
I was wondering if you ever considered changing the page layout of your blog? Its very well written; I love what youve got to say. But maybe you could a little more in the way of content so people could connect with it better. Youve got an awful lot of text for only having 1 or two pictures. Maybe you could space it out better?
I like your writing style truly loving this website .
Thank you for another excellent post. Where else could anybody get that type of info in such a perfect way of writing? I’ve a presentation next week, and I am on the look for such information.
What is Gluco6 Supplement? Gluco6 is a blend of doctor-formulated ingredients promising to help users develop healthy blood sugar ranges.
Great write-up, I am regular visitor of one’s blog, maintain up the excellent operate, and It’s going to be a regular visitor for a lengthy time.
Thankyou for this post, I am a big fan of this site would like to go on updated.
Your place is valueble for me. Thanks!…
Howdy would you mind letting me know which hosting company you’re using? I’ve loaded your blog in 3 different internet browsers and I must say this blog loads a lot quicker then most. Can you suggest a good internet hosting provider at a reasonable price? Thanks a lot, I appreciate it!
I really appreciate this post. I have been looking all over for this! Thank goodness I found it on Bing. You have made my day! Thanks again
Yeah bookmaking this wasn’t a high risk determination outstanding post! .
I do like the manner in which you have presented this specific concern and it really does offer me personally some fodder for consideration. Nonetheless, from everything that I have personally seen, I really trust when the actual responses pile on that men and women stay on point and in no way start on a soap box regarding some other news du jour. Anyway, thank you for this outstanding piece and although I can not necessarily agree with the idea in totality, I regard your viewpoint.
Hello! I could have sworn I’ve been to this blog before but after browsing through some of the post I realized it’s new to me. Anyways, I’m definitely happy I found it and I’ll be book-marking and checking back frequently!
Great post, I think blog owners should learn a lot from this website its rattling user pleasant.
Hey! I know this is kinda off topic however I’d figured I’d ask. Would you be interested in trading links or maybe guest authoring a blog post or vice-versa? My blog discusses a lot of the same subjects as yours and I believe we could greatly benefit from each other. If you are interested feel free to shoot me an email. I look forward to hearing from you! Awesome blog by the way!
The heart of your writing whilst sounding agreeable originally, did not work properly with me personally after some time. Someplace throughout the paragraphs you managed to make me a believer unfortunately just for a while. I still have a problem with your leaps in assumptions and one might do nicely to help fill in all those breaks. If you can accomplish that, I will surely be amazed.
You are my aspiration, I own few blogs and very sporadically run out from to post .
I have not checked in here for a while because I thought it was getting boring, but the last several posts are great quality so I guess I will add you back to my everyday bloglist. You deserve it my friend 🙂
Hey there! This is kind of off topic but I need some advice from an established blog. Is it tough to set up your own blog? I’m not very techincal but I can figure things out pretty quick. I’m thinking about making my own but I’m not sure where to start. Do you have any ideas or suggestions? Thank you
Hello. splendid job. I did not anticipate this. This is a remarkable story. Thanks!
I’m still learning from you, but I’m making my way to the top as well. I absolutely enjoy reading everything that is written on your blog.Keep the tips coming. I liked it!
Thanks – Enjoyed this blog post, can I set it up so I receive an email whenever there is a fresh post?
I went over this internet site and I conceive you have a lot of good information, bookmarked (:.
Howdy! This post could not be written any better! Reading this post reminds me of my previous room mate! He always kept talking about this. I will forward this page to him. Fairly certain he will have a good read. Thank you for sharing!
I have been absent for some time, but now I remember why I used to love this web site. Thanks, I’ll try and check back more often. How frequently you update your website?
Oh my goodness! a tremendous article dude. Thank you Nevertheless I’m experiencing subject with ur rss . Don’t know why Unable to subscribe to it. Is there anybody getting equivalent rss downside? Anyone who is aware of kindly respond. Thnkx
Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your point. You definitely know what youre talking about, why throw away your intelligence on just posting videos to your weblog when you could be giving us something informative to read?
I like this post, enjoyed this one appreciate it for posting.
magnificent points altogether, you just gained a new reader. What would you recommend about your publish that you just made a few days in the past? Any positive?
I couldn’t resist commenting
After study a few of the blog posts on your website now, and I truly like your way of blogging. I bookmarked it to my bookmark website list and will be checking back soon. Pls check out my web site as well and let me know what you think.
I simply couldn’t go away your site prior to suggesting that I extremely enjoyed the usual info an individual provide on your guests? Is going to be back ceaselessly to inspect new posts.
I am impressed with this website , really I am a big fan .
Hi there this is kinda of off topic but I was wondering if blogs use WYSIWYG editors or if you have to manually code with HTML. I’m starting a blog soon but have no coding expertise so I wanted to get advice from someone with experience. Any help would be enormously appreciated!
you are really a good webmaster. The website loading speed is incredible. It seems that you are doing any unique trick. Moreover, The contents are masterwork. you have done a fantastic job on this topic!
Hey very nice website!! Man .. Beautiful .. Amazing .. I will bookmark your blog and take the feeds also…I’m happy to find numerous useful info here in the post, we need develop more strategies in this regard, thanks for sharing. . . . . .
I think this is one of the most significant info for me. And i am glad reading your article. But should remark on some general things, The web site style is wonderful, the articles is really nice : D. Good job, cheers