How does memory work in a computer system? We talk about cells, information stored in those cells, addresses, sizes and how data gets stored in memory.
Жүктеу.....
Пікірлер: 88
@nikiforosstaveris24847 жыл бұрын
stumbled across this vid while studying for my college exams and i really like how simple the presentation of the topic is. It really helped me organize this information in my mind. Great work!
@jackdonsen43799 жыл бұрын
love your way of teaching,thank you,thanks so much!!!
@matthieundumbi38887 жыл бұрын
Thank you very much sir ! Great job. From the first minutes i've understood what i didn't in the class.
@shawnm6077 жыл бұрын
Great video man, I enjoy your style of teaching.
@optimalstate31907 жыл бұрын
Well done!! I like the way you explained everything.
@CarlaLud4 жыл бұрын
Very clearly explained, thank you!
@qilinzhang69582 жыл бұрын
Realy like this video, briefly and clearly, excellent job.
@Esehe8 жыл бұрын
Thank you, very intuitive explanation!
@shabanamehr33685 жыл бұрын
Very effective and elaborate style of teaching. Thankyou Sir!
@vladimirandreev83097 жыл бұрын
Thanks for the presentation, it was nice to remember
@lamia68552 жыл бұрын
This helped a lot . Thank you very much ❤
@gurumoorthyganesan81414 жыл бұрын
Beautiful explanation of the concept. Well done sir.
@trueopinion1006 жыл бұрын
Very well explained!
@MrDaniel5602 жыл бұрын
crystal clear explnation! the best video out there :)
@smitaranipattnaik70846 жыл бұрын
Sir ur teaching is beneficial to us so plz continue by making such videos in all topics
@tenzinchokden5782 жыл бұрын
This video is a gem 😍 Thankyou
@davidlira8853 Жыл бұрын
really good, i got my stizzy, and listening. thank you for exlaining
@DaiMoscv2 жыл бұрын
Very clear sir, thank you so much for the video!
@paurushgargtube4 жыл бұрын
Awesome. love ur patience
@kaplumbagaefendisi28374 жыл бұрын
really clear explanation, thank you sir. we are waiting FPGA videos
@vitavit18273 жыл бұрын
thanks for a simple explanation
@souravprajapati45786 жыл бұрын
best tutorial seen on youtube
@fakeapplestore47107 жыл бұрын
thank you very much sir.
@MrSpruce7 жыл бұрын
Great explanation.
@jefersonbronze Жыл бұрын
Excellent lecture!
@homelypy29024 жыл бұрын
This is awesome!
@JP-nj2sl7 жыл бұрын
Thank you for the very detailed explanation. However, isn't it that there is the null character or string terminator at the end of the string "Hello" and this also occupies an address in the memory?
@DanielLima97dlcs4 жыл бұрын
Thank you soo much brother.
@ajkdrag9 жыл бұрын
great work sir.. please help us with instruction sets... and types of division like restoring and non restoring
@user-cx5mf5id7p7 жыл бұрын
Thank you very much :)
@najehmchirgui81178 жыл бұрын
Thanks you so much
@guliyevshahriyar Жыл бұрын
Thank you very much teacher
@sreelekshmir34314 жыл бұрын
Well explained.....thank u sir
@c.danielpremkumar84955 жыл бұрын
Excellent !
@balarajug10126 жыл бұрын
Clear explainatiin sir , thank you
@orelben2 жыл бұрын
THANK YOU!
@meNmyLittleworLd7 жыл бұрын
this video costs a 100000 thumbs upss...👍👍👍👍...
@benjaminlucas68248 жыл бұрын
thanks for your explanation, but actually 8 in binary doesn't equal 1011, but 1000. 1011 is equal to B. Sorry to say, but Iwas so proud to notice this tiny mistake! Great job.
@AngelusChevalier8 жыл бұрын
Decent explanation
@jimmysantadeo20314 жыл бұрын
PERFECT!!!!
@IbraheemALBalushi5 жыл бұрын
Thank You
@damxx18277 жыл бұрын
Nice vdeo. How are the memory address's stored in ram using your 1 byte per cell example? On a 32 bit system would a single memory address use all 32 bits which would equal 4 four byte cells as, per your example?
@freecrac
7 жыл бұрын
I am not shure if i understand your questions. For to access one byte of ram we can use an address register where the memory address is already placed before. So we can start to write the address that we want to use into a address register example with a move instruction with two operands of one target register and one source operand containing an imidiate value that represent the address, so that the address is only placed inside of our instructions example with a length of 32 bit divided into 4 addresses as a part of our instruction. If an address register is already loaded with an address, then we can access the data of the address example with a move instruction using the address register. This instruction only contains the used register for to address a memory location and additional it contains an other operand as a destination or as a source, depends if we want to load or to store a value from or to the ram. Additional relative addresses are also exist as a forward or backward reference for addressing from the current location, example for to branch to an address. And this address is only stored as a relative address value to our current instruction. So that the address unit of the CPU have to add or to sub the relative address to the address of our current instruction, without to store the fully 32 bit address in the ram.
@yank36564 жыл бұрын
thanks for sharing Abelardo Pardo
@karunakaran54919 жыл бұрын
Nice, your way of teaching is really great. But i have one doubt. Does the integer numbers are straightly stored into the memory cells or the binary of that integer will be stored? For example i wanna store 21 in a cell, Does the system will store 21 into the memory cell or it will store 00100001 in the memory cell?. Thank you!
@AbelardoPardo
9 жыл бұрын
The cells store binary numbers. If the cell has eight bits, 21 is stored as 00010101
@karunakaran5491
9 жыл бұрын
Abelardo Pardo Thank you sir.
@repolyo3016
8 жыл бұрын
+Abelardo Pardo . . . and if 21 is a string, it'll be stored in two cells (assuming each cell is 8-bit), am i right?
@halamkajohn
8 жыл бұрын
+Albert Karuna yes you have to count in binary. this person has started with undue complexity and never gets to actual information on seagate drives or the tiny usb memories. each memory has an address in binary. say location 0000 0000 . set your switches to zero. or press reset. 21 in binary is 16 + 4 +1 or 0001 0101 . now what address do you have to put 0001 0101 at ? Each memory chip has an address and data bus. For a typical microprocessor (170 instructions) the address bus has 16 wires that go from about .1 volt (low or zero) to 4.7 volt (high or 1). The microprocessor counts to 0000 0000 and reads the instruction there. I would put a jump command of 1100 0011 in a ROM . Then put 0000 0000 and 0000 0000. The microprocessor will loop around to address location zero.
@helloworld4553
7 жыл бұрын
john halamka thanks...
@dharvesh4085 жыл бұрын
Suppose if we have to store a 2 byte integer then it will take two cells say 1312 and 1313 . But in programming if we want to print the address of this integer then what would be printed.. Whether it will print 1312 or 1313???
@computadorhumano9493 жыл бұрын
your english is simple for me from brazil understand, you can be teach of english that will have success.
@luapluapluap10006 жыл бұрын
genius should get a nobel prize for clarity
@praveenk22308 жыл бұрын
way of ur explanation is awesome..but the ascii value for H is 68 not 48(in string operation)
@anindyachakraborty3702
8 жыл бұрын
how 68 ??
@glowingone64727 жыл бұрын
What;s the use of hexadecimal? Seems to just add confusion...
@eng.akulluedith88403 жыл бұрын
Do the cells always have the same size? If not, does the formula still apply?
@uzairrashid77245 жыл бұрын
sir please tell me !! where is the memory addresses stored ! by this i mean that every memory cell has a address e.g #123abc but my question actually is where is this #123abc stored?
@SiriusFuenmayor7 жыл бұрын
if in a 32 bits CPU the memory address is of 32 bits and assuming the that the size of each cell is of 1 byte the the maximum memory the computer can handle is of 4.294 * 10^9 = 4 gigabytes, how do then computers can handle a USB flash memory bigger than 4 gigabytes?
@udaykumar-yn1do
7 жыл бұрын
You are partly right , 32 bits CPU can handle only 4 gigabytes of data.But CPU takes the data from RAM not the flash memory.Thats why most RAMs we see are of 4 gigabytes.
@kirankumar78007 жыл бұрын
i want some clarification. how can a common man analyse that memory is stored in a small piece of metal ..the data may be photo,viedos.. etc
@samikamoun81095 жыл бұрын
At 8:01 it should be "0101= 5" at the beginning and not "0001= 1"
@jastriarahmat6597 жыл бұрын
man.. you're great at explaining but your esssses (s sound) is so sharp. i appreciate your lesson though..
@VaibhavMishraVaibhav3 жыл бұрын
is it basically an array?
@Sandysan111117 жыл бұрын
YOur two integers were 5689 and then you convert them into a binary number so how did you get 1639. at time 9:13
@a--b
7 жыл бұрын
Sandy San Yes, I'm wondering the same. Can anyone explain that please :)
@pavlevod
7 жыл бұрын
Its in hex decimal not binary
@trevorohara-oates4710
7 жыл бұрын
The first step was to convert the number into a binary representation then into HEX form.
@a--b
7 жыл бұрын
Trevor Ohara-Oates Thank you
@DupczacyBawol
7 жыл бұрын
BTW, one hex digit is made of 4 bits. 0xF = 0b1111. 0xF = 15 oranges, 1001 = (look at bits position: 1 + 0 + 0 + 8) = 8 oranges. We can even see the numbers as colors, so a given color can mean 73 oranges if your like. It is all just an abstraction of a number/digit, that represent some value/quantity, so use need to use your imagination. Look here how to quickly convert: www.permadi.com/tutorial/numDecToHex/
@alialsh948 жыл бұрын
شكرأ
@EddyCR8 жыл бұрын
how is that garbage in the memory generated? where does it come from?
@allanrichardson1468
7 жыл бұрын
EddyCr Applying power to a flip-flop circuit, such as is used in "static" memory chips, has a 50-50 chance of locking into either of the two stable states, just as dropping a coin edge down on a table gives the coin an equal chance of landing with either side up. The cheaper and more common "dynamic" memory has a small chance of retaining its prior contents if power has been off for a VERY short interval, but more commonly it would power up with binary zeros, since each bit is a very small leaky capacitor, which has to be "refreshed" periodically to keep the bits in which 1s are stored from leaking down to 0s before their information is needed again. Motherboard circuits lock out access by the CPU a few thousand times per second to give each bit cell in a row the refresh signal. This slows down computation by about one in a million CPU cycles at most.
@balajiverma.sc-arn-25363 жыл бұрын
Are all information stored in hexadecimal notation in memory?If yes then why?? PLEASE ANSWER SIR
@AbelardoPardo
3 жыл бұрын
No, information is stored in binary. Hexadecimal is just a more manageable representation of the bits used by the machine.
@balajiverma.sc-arn-2536
3 жыл бұрын
@@AbelardoPardo Thank you Sir for clearing my doubt.😇
@dolamaalshurafa93097 жыл бұрын
im not that good at english but you are greate at teaching
@bryanhuxtable64225 жыл бұрын
This is probably a stupid question, but to find the total number of cells, why is it S - 1 and not S + 1? Since the cells start at zero, then wouldn't you tack a cell on to account for cell zero?
@gurumoorthyganesan8141
4 жыл бұрын
I'm assuming in this 10 months of period, you would've already figured out the answer, but still, in any cases if you're still wondering, here is the answer.. consider like the whole memory have only 10 cells, now start address from 1 to 10.. since the total cell count is 10, it should be easy to address them all. now, with the same scenario, start the addressing with 0, now remember, we have only ten cells, so that the addressing number will be end at 9.. (0...9 -> 10 items). Now that total memory cell count is S (any natural number). so that last index should be S-1 only. Total no. of cells wouldn't be S-1 or S+ 1, its just S.
@ankitaaarya5 жыл бұрын
ऐद्रेस
@shantanuagrawal57064 жыл бұрын
Can we not say or use little or big endian policy for alphabets..??
@asp37667 жыл бұрын
char arr[] = std::string
@billpapes1131
7 жыл бұрын
#import #import #import is the way you want to go. You should work with these and really only use pointers by yourself if you know what you are doing and how it pimps the performance. When it comes to pointers you have to delete the allocated memory. Otherwise it comes to leaks. I would use these containers, since they came with the last standards and manage the memeory allocation and deallocation mostly themselve. There are some exceptions tho. They come with some useful functions as sort, size, max_size - you will see, if you invest like 20 minutes and google them. Oh and if you need an dynamic array and things like thatcheck out #import closely. It is really nice
Пікірлер: 88
stumbled across this vid while studying for my college exams and i really like how simple the presentation of the topic is. It really helped me organize this information in my mind. Great work!
love your way of teaching,thank you,thanks so much!!!
Thank you very much sir ! Great job. From the first minutes i've understood what i didn't in the class.
Great video man, I enjoy your style of teaching.
Well done!! I like the way you explained everything.
Very clearly explained, thank you!
Realy like this video, briefly and clearly, excellent job.
Thank you, very intuitive explanation!
Very effective and elaborate style of teaching. Thankyou Sir!
Thanks for the presentation, it was nice to remember
This helped a lot . Thank you very much ❤
Beautiful explanation of the concept. Well done sir.
Very well explained!
crystal clear explnation! the best video out there :)
Sir ur teaching is beneficial to us so plz continue by making such videos in all topics
This video is a gem 😍 Thankyou
really good, i got my stizzy, and listening. thank you for exlaining
Very clear sir, thank you so much for the video!
Awesome. love ur patience
really clear explanation, thank you sir. we are waiting FPGA videos
thanks for a simple explanation
best tutorial seen on youtube
thank you very much sir.
Great explanation.
Excellent lecture!
This is awesome!
Thank you for the very detailed explanation. However, isn't it that there is the null character or string terminator at the end of the string "Hello" and this also occupies an address in the memory?
Thank you soo much brother.
great work sir.. please help us with instruction sets... and types of division like restoring and non restoring
Thank you very much :)
Thanks you so much
Thank you very much teacher
Well explained.....thank u sir
Excellent !
Clear explainatiin sir , thank you
THANK YOU!
this video costs a 100000 thumbs upss...👍👍👍👍...
thanks for your explanation, but actually 8 in binary doesn't equal 1011, but 1000. 1011 is equal to B. Sorry to say, but Iwas so proud to notice this tiny mistake! Great job.
Decent explanation
PERFECT!!!!
Thank You
Nice vdeo. How are the memory address's stored in ram using your 1 byte per cell example? On a 32 bit system would a single memory address use all 32 bits which would equal 4 four byte cells as, per your example?
@freecrac
7 жыл бұрын
I am not shure if i understand your questions. For to access one byte of ram we can use an address register where the memory address is already placed before. So we can start to write the address that we want to use into a address register example with a move instruction with two operands of one target register and one source operand containing an imidiate value that represent the address, so that the address is only placed inside of our instructions example with a length of 32 bit divided into 4 addresses as a part of our instruction. If an address register is already loaded with an address, then we can access the data of the address example with a move instruction using the address register. This instruction only contains the used register for to address a memory location and additional it contains an other operand as a destination or as a source, depends if we want to load or to store a value from or to the ram. Additional relative addresses are also exist as a forward or backward reference for addressing from the current location, example for to branch to an address. And this address is only stored as a relative address value to our current instruction. So that the address unit of the CPU have to add or to sub the relative address to the address of our current instruction, without to store the fully 32 bit address in the ram.
thanks for sharing Abelardo Pardo
Nice, your way of teaching is really great. But i have one doubt. Does the integer numbers are straightly stored into the memory cells or the binary of that integer will be stored? For example i wanna store 21 in a cell, Does the system will store 21 into the memory cell or it will store 00100001 in the memory cell?. Thank you!
@AbelardoPardo
9 жыл бұрын
The cells store binary numbers. If the cell has eight bits, 21 is stored as 00010101
@karunakaran5491
9 жыл бұрын
Abelardo Pardo Thank you sir.
@repolyo3016
8 жыл бұрын
+Abelardo Pardo . . . and if 21 is a string, it'll be stored in two cells (assuming each cell is 8-bit), am i right?
@halamkajohn
8 жыл бұрын
+Albert Karuna yes you have to count in binary. this person has started with undue complexity and never gets to actual information on seagate drives or the tiny usb memories. each memory has an address in binary. say location 0000 0000 . set your switches to zero. or press reset. 21 in binary is 16 + 4 +1 or 0001 0101 . now what address do you have to put 0001 0101 at ? Each memory chip has an address and data bus. For a typical microprocessor (170 instructions) the address bus has 16 wires that go from about .1 volt (low or zero) to 4.7 volt (high or 1). The microprocessor counts to 0000 0000 and reads the instruction there. I would put a jump command of 1100 0011 in a ROM . Then put 0000 0000 and 0000 0000. The microprocessor will loop around to address location zero.
@helloworld4553
7 жыл бұрын
john halamka thanks...
Suppose if we have to store a 2 byte integer then it will take two cells say 1312 and 1313 . But in programming if we want to print the address of this integer then what would be printed.. Whether it will print 1312 or 1313???
your english is simple for me from brazil understand, you can be teach of english that will have success.
genius should get a nobel prize for clarity
way of ur explanation is awesome..but the ascii value for H is 68 not 48(in string operation)
@anindyachakraborty3702
8 жыл бұрын
how 68 ??
What;s the use of hexadecimal? Seems to just add confusion...
Do the cells always have the same size? If not, does the formula still apply?
sir please tell me !! where is the memory addresses stored ! by this i mean that every memory cell has a address e.g #123abc but my question actually is where is this #123abc stored?
if in a 32 bits CPU the memory address is of 32 bits and assuming the that the size of each cell is of 1 byte the the maximum memory the computer can handle is of 4.294 * 10^9 = 4 gigabytes, how do then computers can handle a USB flash memory bigger than 4 gigabytes?
@udaykumar-yn1do
7 жыл бұрын
You are partly right , 32 bits CPU can handle only 4 gigabytes of data.But CPU takes the data from RAM not the flash memory.Thats why most RAMs we see are of 4 gigabytes.
i want some clarification. how can a common man analyse that memory is stored in a small piece of metal ..the data may be photo,viedos.. etc
At 8:01 it should be "0101= 5" at the beginning and not "0001= 1"
man.. you're great at explaining but your esssses (s sound) is so sharp. i appreciate your lesson though..
is it basically an array?
YOur two integers were 5689 and then you convert them into a binary number so how did you get 1639. at time 9:13
@a--b
7 жыл бұрын
Sandy San Yes, I'm wondering the same. Can anyone explain that please :)
@pavlevod
7 жыл бұрын
Its in hex decimal not binary
@trevorohara-oates4710
7 жыл бұрын
The first step was to convert the number into a binary representation then into HEX form.
@a--b
7 жыл бұрын
Trevor Ohara-Oates Thank you
@DupczacyBawol
7 жыл бұрын
BTW, one hex digit is made of 4 bits. 0xF = 0b1111. 0xF = 15 oranges, 1001 = (look at bits position: 1 + 0 + 0 + 8) = 8 oranges. We can even see the numbers as colors, so a given color can mean 73 oranges if your like. It is all just an abstraction of a number/digit, that represent some value/quantity, so use need to use your imagination. Look here how to quickly convert: www.permadi.com/tutorial/numDecToHex/
شكرأ
how is that garbage in the memory generated? where does it come from?
@allanrichardson1468
7 жыл бұрын
EddyCr Applying power to a flip-flop circuit, such as is used in "static" memory chips, has a 50-50 chance of locking into either of the two stable states, just as dropping a coin edge down on a table gives the coin an equal chance of landing with either side up. The cheaper and more common "dynamic" memory has a small chance of retaining its prior contents if power has been off for a VERY short interval, but more commonly it would power up with binary zeros, since each bit is a very small leaky capacitor, which has to be "refreshed" periodically to keep the bits in which 1s are stored from leaking down to 0s before their information is needed again. Motherboard circuits lock out access by the CPU a few thousand times per second to give each bit cell in a row the refresh signal. This slows down computation by about one in a million CPU cycles at most.
Are all information stored in hexadecimal notation in memory?If yes then why?? PLEASE ANSWER SIR
@AbelardoPardo
3 жыл бұрын
No, information is stored in binary. Hexadecimal is just a more manageable representation of the bits used by the machine.
@balajiverma.sc-arn-2536
3 жыл бұрын
@@AbelardoPardo Thank you Sir for clearing my doubt.😇
im not that good at english but you are greate at teaching
This is probably a stupid question, but to find the total number of cells, why is it S - 1 and not S + 1? Since the cells start at zero, then wouldn't you tack a cell on to account for cell zero?
@gurumoorthyganesan8141
4 жыл бұрын
I'm assuming in this 10 months of period, you would've already figured out the answer, but still, in any cases if you're still wondering, here is the answer.. consider like the whole memory have only 10 cells, now start address from 1 to 10.. since the total cell count is 10, it should be easy to address them all. now, with the same scenario, start the addressing with 0, now remember, we have only ten cells, so that the addressing number will be end at 9.. (0...9 -> 10 items). Now that total memory cell count is S (any natural number). so that last index should be S-1 only. Total no. of cells wouldn't be S-1 or S+ 1, its just S.
ऐद्रेस
Can we not say or use little or big endian policy for alphabets..??
char arr[] = std::string
@billpapes1131
7 жыл бұрын
#import #import #import is the way you want to go. You should work with these and really only use pointers by yourself if you know what you are doing and how it pimps the performance. When it comes to pointers you have to delete the allocated memory. Otherwise it comes to leaks. I would use these containers, since they came with the last standards and manage the memeory allocation and deallocation mostly themselve. There are some exceptions tho. They come with some useful functions as sort, size, max_size - you will see, if you invest like 20 minutes and google them. Oh and if you need an dynamic array and things like thatcheck out #import closely. It is really nice
Ur voice cause pain in ear