Segmented, Paged and Virtual Memory

  Рет қаралды 238,189

Computer Science

Computer Science

5 жыл бұрын

Memory management is one of the main functions of an operating system. This video is an overview of the paged and segmented memory management systems. It describes how a segmented memory management system employs segments of different sizes, which can result in fragmented free space and prevent large processes from accessing the memory very often. This is compared with a paged memory management system in which small equal sized pages are used instead. Concepts such as logical and physical memory are explained, as well as the use of secondary storage to provide virtual memory.

Пікірлер: 225
@Liam-bp2rm
@Liam-bp2rm 3 жыл бұрын
He speaks so passionately and eloquently. He was born to be an educator.
@sergioloo_
@sergioloo_ 2 жыл бұрын
He speaks like Mr Bean.
@lukaassaf3894
@lukaassaf3894 2 жыл бұрын
no
@anirudhsrinivasaraghavan9561
@anirudhsrinivasaraghavan9561 Жыл бұрын
ya bro i aslo agree tis guy good explaning
@Nibbles.
@Nibbles. 9 ай бұрын
the meat riding is crazy bro but yeah clear and concise.
@danielmcleod6535
@danielmcleod6535 3 жыл бұрын
Lifesaver. Was trying to understand this from my lecturer for far too long, this saved me hours. Great concise explanation.
@ComputerScienceLessons
@ComputerScienceLessons 3 жыл бұрын
Thank you. I'm glad to be of service :)KD
@lukaassaf3894
@lukaassaf3894 2 жыл бұрын
@@ComputerScienceLessons cap
@lukaassaf3894
@lukaassaf3894 2 жыл бұрын
@@ComputerScienceLessons liked the video tho :(
@daveamiana778
@daveamiana778 3 жыл бұрын
Saved me 2 hours of rewatching my lecture on this. Thank you for such great content.
@ComputerScienceLessons
@ComputerScienceLessons 3 жыл бұрын
Glad to help :)KD
@chris7056
@chris7056 5 жыл бұрын
your videos are a gem! thank you for this. i am going to be going through them over break - UCSD student here.
@ComputerScienceLessons
@ComputerScienceLessons 5 жыл бұрын
Thanks for the lovely comment.
@sunset6109
@sunset6109 3 жыл бұрын
The 10 dislikes must be from my uni lecturers :)
@ComputerScienceLessons
@ComputerScienceLessons 3 жыл бұрын
No doubt! :)KD
@alizein5107
@alizein5107 3 жыл бұрын
my teacher just said: paging is dividing the memory into equal spaces.. and then i had to figure out what happens from this amazing vid... it's really fun when you understand how it works not just telling me stuff to memorize like a memory card
@ComputerScienceLessons
@ComputerScienceLessons 3 жыл бұрын
I agree - you need to known WHY in order to appreciate something. :)KD
@hepbitkin9854
@hepbitkin9854 2 жыл бұрын
That is the best video I have ever seen on the internet about segmentation, paging and swapping operations. Explaining all the concepts on the same video allows us to understand the whole concept of memory management. Thank you so much for your help.
@yorha.a2
@yorha.a2 2 жыл бұрын
Thank you for this! I've read and watched several articles and videos but none of them were as detailed and easy to understand as this
@ComputerScienceLessons
@ComputerScienceLessons 2 жыл бұрын
Thank you :)KD
@heinzotto1194
@heinzotto1194 4 жыл бұрын
Clear and concise! This is great, thank you.
@hongkyulee9724
@hongkyulee9724 3 ай бұрын
Very clear and concise! Thank you for the good explanation!
@anthonyvaccaro2681
@anthonyvaccaro2681 11 күн бұрын
You have such an amazing ability to simplify complex topics. Thank you
@MyStockz
@MyStockz 7 ай бұрын
Last time I saw this video was 3 years ago. Whenever I want to refresh my paged/segmented/virtual memory knowledge, I skip all other videos on it and come straight to this. 0% bullshit 100% to the point/visualized explanation
@ComputerScienceLessons
@ComputerScienceLessons 7 ай бұрын
Thank you. Welcome back :)KD
@MyStockz
@MyStockz 7 ай бұрын
@@ComputerScienceLessons Thank you for the warm welcome ^_^
@thop7964
@thop7964 Жыл бұрын
I needed a refresher on segmented vs paged memory, and this was fantastic and concise. Wish this video was around when I learned about it the first time lol
@ComputerScienceLessons
@ComputerScienceLessons Жыл бұрын
Thank you. Glad to help. :)KD
@fatihersoy7559
@fatihersoy7559 3 жыл бұрын
another subtle, concise and golden one.
@v380riMz
@v380riMz 3 жыл бұрын
I swear you're helping me to pass my exam this friday.. First the negative binary addition and now paging. Thanks alot
@ComputerScienceLessons
@ComputerScienceLessons 3 жыл бұрын
You are most welcome. Keep up the good work, and the best of luck to you :)KD
@raz0229
@raz0229 2 жыл бұрын
Couldn't wrap my head around with fragmentation and paging by MMU from the book, watched this video and went through the chapter again. Excellent explanation mate 👍
@ComputerScienceLessons
@ComputerScienceLessons 2 жыл бұрын
Delighted to help :)KD
@user-dl3rc2bb1r
@user-dl3rc2bb1r 9 ай бұрын
Thank you!!! Cannot understand this without you
@enchhuang3273
@enchhuang3273 Жыл бұрын
Thank you for this amazing video, I've spent the whole day today trying to understand my lectures, this helped clear things up so much!
@ComputerScienceLessons
@ComputerScienceLessons Жыл бұрын
You are most welcome :)KD
@vephovandenberg3181
@vephovandenberg3181 4 жыл бұрын
Currently, I am learning how do operating systems work. This video is super helpful. Thank you so much.
@ComputerScienceLessons
@ComputerScienceLessons 4 жыл бұрын
You're very welcome. :)KD
@akhileshbhalerao6908
@akhileshbhalerao6908 2 жыл бұрын
It's been a long time i wasn't clear with the concept and after watching this video and many more videos of yours in this playlist.. All became crystal clear.. Thanks a lot.. 👍🏻
@ComputerScienceLessons
@ComputerScienceLessons 2 жыл бұрын
You are welcome :)KD
@oliverbeck6839
@oliverbeck6839 2 жыл бұрын
such a great voice, tone with a clear explanation, awesome...
@kanashimi6209
@kanashimi6209 3 жыл бұрын
Thank you for all the great content you put out! Keep up the good work
@ComputerScienceLessons
@ComputerScienceLessons 3 жыл бұрын
You are most welcome. More on the way :)KD
@diogomeneses48
@diogomeneses48 5 жыл бұрын
Very good articulation, please keep up!
@mk9834
@mk9834 5 жыл бұрын
very clear and helpful presentation! thanks
@vamosabv
@vamosabv 3 жыл бұрын
Thanks for a very nice explanation with helpful diagrams!
@teetanrobotics5363
@teetanrobotics5363 4 жыл бұрын
Best video on KZbin.
@celsiusfahrenheit1176
@celsiusfahrenheit1176 4 жыл бұрын
you should be the only one teaching this, most eveyone else in billions of google searches could not clearly explain the difference between logical, physicla and virtual memory, i was very confused betweeen logical and virtual, now with one image I totally get it.
@ComputerScienceLessons
@ComputerScienceLessons 4 жыл бұрын
It's actually a really simple idea isn't it? Thanks for the comment, it's much appreciated. :)KD
@emperor8716
@emperor8716 3 ай бұрын
Have an exam tmr and still haven't learnt this. I'm not stressing though because I know you won't disappoint :)
@ComputerScienceLessons
@ComputerScienceLessons 3 ай бұрын
Good luck :)KD
@andrewgreen1970
@andrewgreen1970 Жыл бұрын
Stellar video. Clear and concise. Thank you.
@ComputerScienceLessons
@ComputerScienceLessons Жыл бұрын
Thank you :)KD
@taubenangriff
@taubenangriff Жыл бұрын
exam in 2 days, crunching learning hard. what a great video to get into the basics fast.
@ComputerScienceLessons
@ComputerScienceLessons Жыл бұрын
Delighted to help. Good luck. :)KD
@mwtiktok7552
@mwtiktok7552 28 күн бұрын
this was the best explanation! thank you so much!!!
@hughe29
@hughe29 3 жыл бұрын
Brilliant work. Thank you.
@digitaldrive1192
@digitaldrive1192 2 жыл бұрын
Great delivery, thanks.
@charlesc2064
@charlesc2064 4 жыл бұрын
Thank you!! Super easy to understand, loved it
@ComputerScienceLessons
@ComputerScienceLessons 4 жыл бұрын
You are welcome. Thanks for the comment :) KD
@williamjayaraj2244
@williamjayaraj2244 Жыл бұрын
Thank you for this lesson on memory allocation in computers. Easy to understand.
@ComputerScienceLessons
@ComputerScienceLessons Жыл бұрын
You're welcome :)KD
@NeaRaRiver
@NeaRaRiver 2 жыл бұрын
1. You sound like Daniel from the game Amnesia : The dark descent. 2. Awesome. Hours of reading in 7 minutes... Why I just cant understand why cant people explain something easily with examples like this, we would have conquered all planets by now with educators like you. I start to think that we make things sound difficult on purpose... Thank you!
@Alex-fo7jc
@Alex-fo7jc 3 жыл бұрын
Your explanation is the best! Thanks!
@ComputerScienceLessons
@ComputerScienceLessons 3 жыл бұрын
Thanks for saying so :)KD
@linyidai9076
@linyidai9076 5 ай бұрын
thank you my friend, you helped my midterm :)
@intuitiveclass6401
@intuitiveclass6401 Жыл бұрын
I wish my professor spoke about these topics as concise as you do, thank you
@ComputerScienceLessons
@ComputerScienceLessons Жыл бұрын
You're very welcome :)KD
@com0oan
@com0oan 3 жыл бұрын
Amazing presentation!
@binhtong570
@binhtong570 3 жыл бұрын
Thank you! Your video is very informative.
@kosmasraptis8374
@kosmasraptis8374 3 жыл бұрын
Personally I'm trying to make an operating system as a hobby and I randomly came across this so I watched it. Great explanation, I subbed
@ComputerScienceLessons
@ComputerScienceLessons 3 жыл бұрын
Thank you. If you're the next Bill Gates or Steve Jobs, remember me :)KD
@kosmasraptis8374
@kosmasraptis8374 3 жыл бұрын
@@ComputerScienceLessons I sure will, my friend
@fluorescent_axolotl
@fluorescent_axolotl 3 жыл бұрын
Beautifully done! I wish you were my professor.
@ComputerScienceLessons
@ComputerScienceLessons 3 жыл бұрын
Thank you so much :)KD
@searchforwardlimited8657
@searchforwardlimited8657 Жыл бұрын
This is exactly what I need.
@saudgl
@saudgl 2 жыл бұрын
What a perfect explanation really good job
@timgorman807
@timgorman807 2 жыл бұрын
This makes a lot more sense, brilliant.
@ComputerScienceLessons
@ComputerScienceLessons 2 жыл бұрын
Glad to help :)KD
@wonderbuddy3204
@wonderbuddy3204 2 жыл бұрын
thank you so much for this, you have no idea how much you have helped me through!
@ComputerScienceLessons
@ComputerScienceLessons 2 жыл бұрын
My pleasure :)KD
@unity3dconcepts434
@unity3dconcepts434 3 жыл бұрын
love your videos... :-D . your voice + tempo makes it more interesting
@ComputerScienceLessons
@ComputerScienceLessons 3 жыл бұрын
Thanks for the lovely comment :)KD
@Crazygon1998
@Crazygon1998 5 жыл бұрын
Thank you very much!
@satyaprakash5503
@satyaprakash5503 5 жыл бұрын
Please make a video on "Virtual segmented systems" . Thank you
@estherwahnon3638
@estherwahnon3638 3 жыл бұрын
WOW. Incredible video , this helped me understood the material in such a small amount of time !!!! Highly recommended
@estherwahnon3638
@estherwahnon3638 3 жыл бұрын
This helped topple to understand ***
@ComputerScienceLessons
@ComputerScienceLessons 3 жыл бұрын
You are very welcome :)KD
@ComputerScienceLessons
@ComputerScienceLessons 3 жыл бұрын
:)KD
@mr.t877
@mr.t877 3 жыл бұрын
This was one of the best videos on this topic I found. THANK YOU SO MUCH. btw I like British English. :-)
@ComputerScienceLessons
@ComputerScienceLessons 3 жыл бұрын
Delighted to help. Thanks for the lovely comment :)KD
@lamalamalamalamapapa
@lamalamalamalamapapa 6 ай бұрын
what an excellent explanation!! thanks a lot!!
@ComputerScienceLessons
@ComputerScienceLessons 6 ай бұрын
Thank you. You are most welcome :)KD
@fddon4166
@fddon4166 5 жыл бұрын
flawless explanation!
@jirihorak2924
@jirihorak2924 4 жыл бұрын
Not exactly. The segmented memory can be also virtualized. The video shows it in a way segments must follow each other, even though it is usually the same as with pages, the only difference is external fragmentation and internal fragmentation (=unused space in a segment) problem at once with segments (tries to balance both types out) or internal fragmentation only with pages.
@jojorose375
@jojorose375 3 жыл бұрын
Thank you, it was an understandable lecture. .
@yousefmousa9796
@yousefmousa9796 Ай бұрын
Gold thanks !
@sylvestertweetyhunter1733
@sylvestertweetyhunter1733 Жыл бұрын
Helped me a lot with my exam. Thank you so much👍
@ComputerScienceLessons
@ComputerScienceLessons Жыл бұрын
You are most welcome. Delighted to help :)KD
@Liam-bp2rm
@Liam-bp2rm 3 жыл бұрын
I am about to finish my second-to-last semester in my CS BA degree and just today found out there is a channel called computer science
@subodhvashistha676
@subodhvashistha676 4 жыл бұрын
Crisp and clear
@zerubabeljember9387
@zerubabeljember9387 2 жыл бұрын
Thank you so much for making such amazing and clear lesson
@ComputerScienceLessons
@ComputerScienceLessons 2 жыл бұрын
You are most welcome. Thanks for the lovely comment:)KD
@filipsiroky4439
@filipsiroky4439 5 жыл бұрын
thank you! really well explained
@tomasfojt3381
@tomasfojt3381 Жыл бұрын
FI MUNI statnice? :D
@bextract0
@bextract0 2 жыл бұрын
Fantastic resource.
@ComputerScienceLessons
@ComputerScienceLessons 2 жыл бұрын
Thank you :)KD
@user-cy7st6bw4b
@user-cy7st6bw4b 3 жыл бұрын
Very clear, thank you!
@ComputerScienceLessons
@ComputerScienceLessons 3 жыл бұрын
Thank you :)KD
@Got-it747
@Got-it747 2 ай бұрын
My God, give this guy 1k more likes 🙏
@moarz__1888
@moarz__1888 7 ай бұрын
This is insanely helpful
@ComputerScienceLessons
@ComputerScienceLessons 6 ай бұрын
Glas to help :)KD
@user-xl8uo9gp9p
@user-xl8uo9gp9p 3 жыл бұрын
so correct me if im wrong! segments are like those mentioned in say,x86 architecture ie code,data,stack etc?and at one time one process's one/more segments can be in physical ram(i mean is the ram concerned about "segments",which one!!,or it just "has the data"?) and these segments are atomic? but at 2:11 you say process is atomic?? im stupid but please explain this to me,ive got everything jumbled in my head one bonus question::windows has page file,so it def uses paging.what about segmentation?
@omarghoche1828
@omarghoche1828 3 жыл бұрын
thank you for the explanation!
@ComputerScienceLessons
@ComputerScienceLessons 3 жыл бұрын
You're most welcome :)KD
@setokousuke6548
@setokousuke6548 3 жыл бұрын
may I ask how is modern os deal with memory management? I mean are they using pure paging or segmented paging. and also they're all hardware implements right? I'm learning os but I got so much confused between architecture because some of their content are duplicated to each other. Thanks for your video I'm really appreciate it.
@swedishguyonyoutube4684
@swedishguyonyoutube4684 2 жыл бұрын
YES! I LOVE these vids!
@ComputerScienceLessons
@ComputerScienceLessons 2 жыл бұрын
:) :) :) KD TY
@saudaljaloud5953
@saudaljaloud5953 2 ай бұрын
best video ever 👍👍👍
@user-oy4kf5wr8l
@user-oy4kf5wr8l 19 күн бұрын
the voice in IT is so unique
@benyaminyakobi3652
@benyaminyakobi3652 4 жыл бұрын
Thank you very much, clear explanation :)))
@ComputerScienceLessons
@ComputerScienceLessons 4 жыл бұрын
You are welcome :)KD
@oviya.n1317
@oviya.n1317 3 жыл бұрын
This got me with a good revision ❤️
@ComputerScienceLessons
@ComputerScienceLessons 3 жыл бұрын
Delighted to help :)KD
@lucarauchenberger628
@lucarauchenberger628 4 жыл бұрын
wow just wow! soooo helpful! thank you
@ComputerScienceLessons
@ComputerScienceLessons 4 жыл бұрын
Glad it was helpful. :)KD
@simatbirch
@simatbirch 4 жыл бұрын
Excellent - subbed!
@ComputerScienceLessons
@ComputerScienceLessons 4 жыл бұрын
Welcome aboard! :)KD
@PhenChua
@PhenChua Жыл бұрын
Beautiful presentation
@ComputerScienceLessons
@ComputerScienceLessons Жыл бұрын
Thank you very much :)KD
@ed1849x
@ed1849x Жыл бұрын
Thank you!
@ComputerScienceLessons
@ComputerScienceLessons Жыл бұрын
You're welcome :)KD
@mohammadahmedragab837
@mohammadahmedragab837 3 жыл бұрын
amazing concise information on memory management 💙💙💙
@ComputerScienceLessons
@ComputerScienceLessons 3 жыл бұрын
Thank you :)KD
@yeadatwunyt8004
@yeadatwunyt8004 Жыл бұрын
wonderful presentation
@ComputerScienceLessons
@ComputerScienceLessons Жыл бұрын
Thank you :)KD
@indigod3323
@indigod3323 7 ай бұрын
You are the best!
@ComputerScienceLessons
@ComputerScienceLessons 7 ай бұрын
You're too kind. Thank you :)KD
@ShivaSpaceStation
@ShivaSpaceStation Жыл бұрын
Wow, lifesaver
@jebalimazen1809
@jebalimazen1809 Жыл бұрын
I got nothing to say, you nailed it
@ComputerScienceLessons
@ComputerScienceLessons Жыл бұрын
Thank you :)KD
@someone3706
@someone3706 3 жыл бұрын
Your video is great, thank you. But I do not understand what does logical memory store? I mean, the logical memory part is not so clear. Sorry for the criticism.
@ComputerScienceLessons
@ComputerScienceLessons 3 жыл бұрын
logical memory is not real!!! The operating system (E.G. Windows) fools each program into thinking it is the only thing running on the computer. It fools each program into thinking it has all of the memory to itself. Logical memory is one program's view of the memory - it is how an individual program sees the memory. Physical memory on the other hand is what is really going on - that is, lots of different programs sharing the memory (oblivious of each other). :)KD
@someone3706
@someone3706 3 жыл бұрын
@@ComputerScienceLessons :))) Thank you it is now clear. Keep doing such kinds of videos.
@2giaitich98
@2giaitich98 2 жыл бұрын
Could you help me? In which system is segmentation with paging used (give an example of at least one system)?
@friction5001
@friction5001 3 жыл бұрын
This is mouth watery content
@ComputerScienceLessons
@ComputerScienceLessons 3 жыл бұрын
I've never heard it called that. Thank you :)KD
@JKSmith-qs2ii
@JKSmith-qs2ii 3 жыл бұрын
Excellent video! How is the address degined in paged memory? Is it supplied with a page number and an offset within that page? How does that work if some of the program is in memory, and other parts in virtual memory?
@ComputerScienceLessons
@ComputerScienceLessons 3 жыл бұрын
A memory address includes a column address and a row address, and more! My playlist on Random Access Memory goes into more details about this: kzbin.info/aero/PLTd6ceoshpreE_xQfQ-akUMU1sEtthFdB Page replacement techniques depend on the operating system. There's a good starter article on Wikipedia about this: en.wikipedia.org/wiki/Page_replacement_algorithm. I hope this helps :)KD
@gtb7878
@gtb7878 4 жыл бұрын
thanks :) very good to understand
@ComputerScienceLessons
@ComputerScienceLessons 4 жыл бұрын
You are welcome :)KD
@ggeuk__5244
@ggeuk__5244 3 жыл бұрын
This helped alotttt thankyou
@ComputerScienceLessons
@ComputerScienceLessons 3 жыл бұрын
Delighted to help :)KD
@OussamaKoussi
@OussamaKoussi Жыл бұрын
thanks sir
@paurushgargtube
@paurushgargtube 2 жыл бұрын
Lifesaver.
@calvin_713
@calvin_713 8 ай бұрын
THanks!
@ComputerScienceLessons
@ComputerScienceLessons 8 ай бұрын
You're welcome :)KD
@nates9778
@nates9778 3 жыл бұрын
Would there be a disadvantage for having a higher page size, 1gb for instance.
@ComputerScienceLessons
@ComputerScienceLessons 3 жыл бұрын
It takes longer to swap large amounts of data in an out. You might also swap out some smaller programs and data unnecessarily, then need them again immediately. There's definitely a balancing act to be performed here. For windows based computers, someone decided 4KB was optimal :)KD
@KabelkowyJoe
@KabelkowyJoe Жыл бұрын
BUT in order to work CPU must have access must be provided to page list where each currently running process is loaded to translate adresses, 368 support this, 286 only segmented, 88/86 none only real mode, page size, segment size is defined in hardware
@avirajpatil630
@avirajpatil630 2 жыл бұрын
Thank you Sir
@ComputerScienceLessons
@ComputerScienceLessons 2 жыл бұрын
You're welcome :)KD
@chenchang-zr5rb
@chenchang-zr5rb 2 ай бұрын
great video❤
@ComputerScienceLessons
@ComputerScienceLessons 2 ай бұрын
Thank you :)KD
@yahyarechaki9908
@yahyarechaki9908 3 жыл бұрын
Thanks Here , 6:04 youre talking about the logical adress (logical memory) ? The logical memory is not necessary contiguous ?
@ComputerScienceLessons
@ComputerScienceLessons 3 жыл бұрын
Logical memory is smoke and mirrors! It is simply the way one program sees the memory. Each program is made to believe that it is the only thing running on the computer, and that it has all of the memory to itself. (thanks to the operating system). :)KD
@giorgosK936
@giorgosK936 2 жыл бұрын
why is your voice so perfect?
@aislinnlimbird8114
@aislinnlimbird8114 3 жыл бұрын
Watching before my masters exam tomorrow :)
@ComputerScienceLessons
@ComputerScienceLessons 3 жыл бұрын
The very best of luck to you :)KD
@lincelynx1869
@lincelynx1869 3 жыл бұрын
Is there a huge difference between them in gaming?
@zyadhabeeb59
@zyadhabeeb59 3 жыл бұрын
wow thats so nice
Variables and Parameters 1
7:33
Computer Science
Рет қаралды 16 М.
But, what is Virtual Memory?
20:11
Tech With Nikola
Рет қаралды 252 М.
Schoolboy - Часть 2
00:12
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 15 МЛН
World’s Largest Jello Pool
01:00
Mark Rober
Рет қаралды 123 МЛН
ROLLING DOWN
00:20
Natan por Aí
Рет қаралды 4,5 МЛН
A little girl was shy at her first ballet lesson #shorts
00:35
Fabiosa Animated
Рет қаралды 20 МЛН
Pointers and dynamic memory - stack vs heap
17:26
mycodeschool
Рет қаралды 1,4 МЛН
What's Virtual Memory? - Computerphile
22:40
Computerphile
Рет қаралды 176 М.
FANG Interview Question | Process vs Thread
3:51
ByteByteGo
Рет қаралды 302 М.
Operating Systems 2 - Memory Manager
8:54
SMKS
Рет қаралды 328 М.
Paging in Operating Systems with Example & Working - Memory Management
17:26
What is virtual memory? - Gary explains
11:28
Android Authority
Рет қаралды 301 М.
Paging (OS)
29:12
Casey Cole
Рет қаралды 75 М.
The Fetch-Execute Cycle: What's Your Computer Actually Doing?
9:04
Tom Scott
Рет қаралды 1,8 МЛН
Virtual Memory: 3 What is Virtual Memory?
8:47
David Black-Schaffer
Рет қаралды 675 М.
Schoolboy - Часть 2
00:12
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 15 МЛН