Page Faults & Page Fault Handling in Operating Systems | Page Fault Numerical Example | Thrashing

  Рет қаралды 67,549

Simple Snippets

Simple Snippets

Күн бұрын

Пікірлер: 65
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
Hey Guys, if you want more such tech educational videos on this channel then please support me by subscribing to this channel & also share it with your friends as it helps me create more content just for you ✌
@vishalagarwal4766
@vishalagarwal4766 4 жыл бұрын
Effective access time cannot be lesser than the memory access time when there is no page fault. It should come out to be 101 ms instead of 91 ms. This mistake has occurred because you have not added the usual (when there is no page fault) access time to the overhead in case of page fault before multiplying it by 0.1. Also, comprehensive explanation otherwise. This was a great help.
@shubhamupadhyay6861
@shubhamupadhyay6861 6 жыл бұрын
Your explanation was superrb..... I liked it a lot.... Just resolve my query
@SimpleSnippets
@SimpleSnippets 6 жыл бұрын
Thanks for the response buddy. I guess you used the formula wrong :-)
@ritteshpv2196
@ritteshpv2196 2 жыл бұрын
It was really clean how you explained the thrashing from what's needed to understand how the thrashing happens !
@mamo100
@mamo100 Жыл бұрын
Tanks for video. I hade a question about "page fault overlaod" in 10:35 : shoulden´t it be 110? because "Momory access time" includes in page fault overload.
@chinnuyadav6897
@chinnuyadav6897 5 жыл бұрын
hey! there.Thank you so much. I could understand every concept of OS a day before exam cuz of your videos.
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
Most welcome buddy. I would request you to please share the videos and channel with your friends too. Thats the biggest help and support for the channel 😇
@AryanKumar-wn1yd
@AryanKumar-wn1yd 4 жыл бұрын
Your EAT calculation is wrong. The EAT is coming to be lower than memory access time after 10% page fault. The correct calculation would bb 0.9 * 100 + 0.1 *(100 + 10) = 101ms
@Sauravgpt34
@Sauravgpt34 4 жыл бұрын
Yes, you're right
@WADS-rr9wy
@WADS-rr9wy 5 жыл бұрын
Thanks so much you explain computing so well!
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
Thank you so much Thomas, really glad to hear this from you. Please do subscribe to this channel & share the content with your friends too. That will be the biggest help & support 😇
@AdMrAuZmImNeGr
@AdMrAuZmImNeGr 2 жыл бұрын
Fantastic explanation. Thank you, sir!
@abcdabcd8605
@abcdabcd8605 Жыл бұрын
excellent explanation
@chandannene281
@chandannene281 2 жыл бұрын
Rather than (1-P)* + P*, EAT should be = + P*. This is because irrespective of page fault or not, memory access time is going to be there always.
@kemalkubilayylmaz4142
@kemalkubilayylmaz4142 Жыл бұрын
Page fault overload process already includes the memory access time. So, if you put 1 instead of (1-p), you count the memory access time in page fault overload process twice
@michaelvt2267
@michaelvt2267 Жыл бұрын
@@kemalkubilayylmaz4142The page fault overload in the example should be 110ms instead of 10ms which is used in the example calculation.
@vikaskumarsingh3608
@vikaskumarsingh3608 6 жыл бұрын
Well explained, thank you
@SimpleSnippets
@SimpleSnippets 6 жыл бұрын
Thank you so much Vikas. Please share the video with your friends as well. That will be really helpful and the best support ✌
@emircimen9060
@emircimen9060 Жыл бұрын
thank you mr indian sirmen.
@amandatao9622
@amandatao9622 Жыл бұрын
Thank you!!!
@Gurdat555555555
@Gurdat555555555 3 жыл бұрын
Thank you! This video was very helpful!
@SimpleSnippets
@SimpleSnippets 3 жыл бұрын
Glad it was helpful!
@deepamgupta8011
@deepamgupta8011 4 жыл бұрын
Clear cut and simple boss...
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Thank you Deepam 🤟 I try to keep it short simple and sweet 😇 Please do Subscribe & share with your friends. That's the biggest help and support ✌️
@rajmourya35
@rajmourya35 3 жыл бұрын
Amazing video/explanation man.
@SimpleSnippets
@SimpleSnippets 3 жыл бұрын
Glad you liked it!
@--sql
@--sql 4 жыл бұрын
This helped me a lot, thank you!
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Most welcome ✌️
@randywa
@randywa 10 ай бұрын
Great explanation. It made perfect sense. I’m slightly curious about the test question though. Wouldn’t it actually be .9*100 + .1*110 which is 101? Because 10% of the time we have page fault overhead which adds to the already existing access time right? You could also think about it as 100% of the time, memory access is 100ms, but then 10% of the time there will be an extra 10ms which means it’s 1*100 + .1*10 = 101
@adityakulkarni3396
@adityakulkarni3396 5 жыл бұрын
Hey man , thanks for such an awesome explanation !!!
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
Most welcome bro 😁 I'm glad you liked it. Please share the video with your friends too ✌️
@keshavkattel
@keshavkattel 3 жыл бұрын
very nice explanation brother.
@shaharrefaelshoshany9442
@shaharrefaelshoshany9442 3 жыл бұрын
Best ever
@SimpleSnippets
@SimpleSnippets 3 жыл бұрын
Thanks bro, I'm glad to hear this. Please do share the videos with your friends too. That's the biggest help and support you can give back to me 🙏😊
@Venkymsd
@Venkymsd 3 жыл бұрын
Nice explanation
@rtlinsn5085
@rtlinsn5085 6 жыл бұрын
Thank you very much, well explanation. I have a question. Is there a way to predict or count the number of page faults? either statically or at run-time?
@neerajkukreja8997
@neerajkukreja8997 5 жыл бұрын
The explanation was very good. Can you give the notes of page fault also in the way you have given for paging
@shubhamupadhyay6861
@shubhamupadhyay6861 6 жыл бұрын
Bhai ye page fault waale question ka answer galat hai...... Answer 101 hoga.... ((0.9*100)+(0.1*(100+10)))=101... In this question 100 second will be memory access time + 10 seconds will be penalty for page fault....
@SimpleSnippets
@SimpleSnippets 6 жыл бұрын
Good question, well you have applied the formula incorrectly buddy. the second part is (probability of failure * the overhead time) and not the total time with overhead. the overhead time generally itself this the time taken to perform all the page fault activities itself :-)
@shubhamupadhyay6861
@shubhamupadhyay6861 6 жыл бұрын
@@SimpleSnippets dear, We will only get to know that demanded page is missing in the primary memory when we will access it..... So we should add access time to page fault time...... This is my last argument..... Please resolve it.......
@johannsebastianbach3411
@johannsebastianbach3411 5 жыл бұрын
By the videos logic, it would be slower to access pages if all pages were already in the frame: (1-0)*100+(0*10) = 100 > 91 I agree with Shubham. We still do memory access for the small portion of cases with page fault, but we also waste time retrieving them from hdd. So it should be ((1-p)* (t memory)) + p * (t memory + overhead)
@erikasong3054
@erikasong3054 4 жыл бұрын
Thank you so much, Sir, for this video! You are amazing! SUBSCRIBED :D
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Thank you so much buddy🙏 Please support me by sharing the videos and our channel with your friends too. Thats the biggest help and support you can provide 😇
@kinjalshah2796
@kinjalshah2796 4 жыл бұрын
Thanks for sharing info. Just one question.. how paging (VM) created in secondary memory?
@avichalkumar8758
@avichalkumar8758 3 жыл бұрын
Everything is good,but please make a subject wise playlist Like paging videos in Operating systems playlist
@colinrhee98
@colinrhee98 4 жыл бұрын
Is there a way I can download the diagram, I haven't found any other diagrams that come close to the level of detail you present.
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Take a screenshot for now if that helps
@johannsebastianbach3411
@johannsebastianbach3411 5 жыл бұрын
Thanks for the tutorial, however, i have an issue with something. Imagine if all pages were in hdd and no pages are in memory. Then the access time is: 0*100 + 1* 10 = 10 ms But if everything was in memory already: 1*100+0*10 = 100 How is accessing pages in memory slower than retrieving from hdd?
@yxlxfxf
@yxlxfxf 4 жыл бұрын
I thought the same thing, I think the page fault access time should be memory access time + page fault overhead = 110 ms
@vishalagarwal4766
@vishalagarwal4766 4 жыл бұрын
@@yxlxfxf Exactly. That hasn't been addressed properly. You have to add the memory access time with the overhead.
@julesbamwe6061
@julesbamwe6061 4 жыл бұрын
@@yxlxfxf You need to use the probability since not all pages will be in the secondary memory. it might be there not there. the answer should be greater or equal to 100 and less than 110
@yxlxfxf
@yxlxfxf 4 жыл бұрын
@@julesbamwe6061 The average memory access time would be between 100 and 110, I was referring to the time for one single page fault
@julesbamwe6061
@julesbamwe6061 4 жыл бұрын
@@yxlxfxf exact... Then u are right in that case. Obvious 110.
@zahreddinesoualem3213
@zahreddinesoualem3213 5 жыл бұрын
in step 4 is the MMU that takes p3 3 to the main memory or OS ?
@Blooderstokizz
@Blooderstokizz 3 жыл бұрын
Why are you missing TLB memory ?
@peter0702
@peter0702 3 жыл бұрын
Why EAT is shorter than memory access time??? Why it seems the more page fault happens, the shorter EAT is?? I understand the formula, but are the numbers realistic?
@CybercoderNaj
@CybercoderNaj 9 ай бұрын
10:54 I believe your numerical problem example is not the best example. If memory access time is 100ms, how can the page fault overhead be 10ms? Page fault overhead = memory access to page table + memory access to secondary storage + updating page table in memory + restarting the instruction so if memory access time is itself 100ms, then page fault overhead needs to be at least 4x the memory access. Your formula is right, but the example doesn't make any sense.
@Samtoosoon
@Samtoosoon 10 ай бұрын
No page found, finds secondary storage, bring into free frame, update page table, restart instruction
@SahibdadFazil
@SahibdadFazil 2 ай бұрын
Currently watching this in the bathroom during the exam😭
@Hero360-k1e
@Hero360-k1e 10 күн бұрын
Can you cover all the concept in operating system concepts by abraham silberschatz
@MrNomay
@MrNomay 3 жыл бұрын
Love from Pakistan bro❤️
@kunalsamnani6782
@kunalsamnani6782 4 жыл бұрын
Semaphore daal do yaar
Paging in Operating Systems with Example & Working - Memory Management
17:26
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН
But, what is Virtual Memory?
20:11
Tech With Nikola
Рет қаралды 339 М.
What is virtual memory? - Gary explains
11:28
Android Authority
Рет қаралды 319 М.
WHY IS THE HEAP SO SLOW?
17:53
Core Dumped
Рет қаралды 295 М.
Segmented, Paged and Virtual Memory
7:48
Computer Science Lessons
Рет қаралды 267 М.
Lec47:Steps in handling a Page Fault
8:28
Engineering Wing
Рет қаралды 3,2 М.
Demand Paging And Page Faults
21:23
Casey Cole
Рет қаралды 10 М.
16.2.2 Basics of Virtual Memory
12:20
MIT OpenCourseWare
Рет қаралды 53 М.
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН