2nd Chance Algorithm Example

Sdílet
Vložit
  • čas přidán 1. 08. 2024
  • In this video, I will give another example of the 2nd chance page replacement algorithm. It will include many of the nuances you will face and how to solve them.
  • Věda a technologie

Komentáře • 31

  • @erdmst2511
    @erdmst2511 Před 2 měsíci +3

    You are the best'!!! Keep up the good work. I passed my Operating Systems quiz thanks to you. I can't thank you enough!!!! Greatings from Turkey !!!

  • @Maria-md4po
    @Maria-md4po Před 2 měsíci +2

    thank you soo much , im glad that you included all the conditions in one question itself

  • @SarahJohnson-qi9dm
    @SarahJohnson-qi9dm Před 7 měsíci +1

    Just helped me so much with my final exam tomorrow, thank you!

  • @adilchaouch3513
    @adilchaouch3513 Před 3 lety +2

    Thank you! very instructive and clear

  • @mahmutsezgin5745
    @mahmutsezgin5745 Před 2 lety +1

    nice example with all conditions, clear explanation

  • @im_Ni
    @im_Ni Před 8 měsíci

    It's a perfect example. Thank you

  • @tebes11
    @tebes11 Před měsícem +2

    This exemple is wrong. In the classic second chance algorithm after inserting new data into a frame the reference bit must be set to 1. When starting at frame 0 after inserting 4 into the frame we have to set the reference bit to 1 in this frame. There is also a pointer showing which frame is the candidate frame (victim frame) to insert data at the next page fault. So a the the beginning all the reference bits a set to 0 and the pointer is set to frame 0. Inserting 4. Setting reference bit to 1. Moving pointer to the next frame (in this case frame 1). When there is no page fault the frame where the value is locate will have it bit set to 1 if not already. The pointer will still be set to the last frame in date.

  • @losame1071
    @losame1071 Před rokem

    How do I find out which page is the oldest, when I just iterate through the reference bit vector (which I do with this algorithm, right?)?

  • @bilalkhanalizai
    @bilalkhanalizai Před 3 lety +31

    Very nice video, Casey. In column 6, should it not be a page fault when page 7 gets loaded for the first time? I noticed there is no star with page 7 :)

    • @muzisyenruhlu3754
      @muzisyenruhlu3754 Před 6 měsíci

      bro where are u from that's turkish english ı think

    • @bilalkhanalizai
      @bilalkhanalizai Před 6 měsíci

      @muzisyenruhlu3754 if your question is for me then I am Pakistani by origin but I live in the US (California)

    • @damageddude
      @damageddude Před 6 měsíci

      lol whats wrong about his english?@@muzisyenruhlu3754

  • @ramizkaraeski586
    @ramizkaraeski586 Před 6 měsíci

    Huge thanks Miss.

  • @caseygong6405
    @caseygong6405 Před 2 lety +3

    this output has no difference with purely FIFO... I still dont get it

  • @ismailhadjir9703
    @ismailhadjir9703 Před 2 měsíci

    Thanks for this detailed explanation

  • @hobinh8744
    @hobinh8744 Před 2 měsíci

    thank you so much, i cannot understand when i study at school but you help me a lót

  • @comicmania76
    @comicmania76 Před 2 měsíci

    That was good! Thanks Mam!

  • @Moemenmekadmini
    @Moemenmekadmini Před 2 měsíci

    Great explanation

  • @Alex-ut4cc
    @Alex-ut4cc Před 2 lety +7

    u miss an default page for the first 7

  • @yesbolbavarkhan9275
    @yesbolbavarkhan9275 Před 3 lety

    thank you a lot 👍

  • @user-mw3ln5no9s
    @user-mw3ln5no9s Před 22 dny

    wow thank you!!!

  • @massyliasarahaityahia
    @massyliasarahaityahia Před 2 měsíci

    thank you so much 🙏

  • @user-jq1jr9yq3p
    @user-jq1jr9yq3p Před 3 lety

    Thank you

  • @Anis_dhia
    @Anis_dhia Před 3 lety

    Thank you :)

  • @year6412
    @year6412 Před 3 lety

    thank you

  • @naziur_riaz
    @naziur_riaz Před 2 lety

    thanks a ton

  • @imadeddineterraf2587
    @imadeddineterraf2587 Před rokem

    Thanks

  • @Serkanjim
    @Serkanjim Před rokem

    thank u

  • @majdme842
    @majdme842 Před 2 lety

    Great great great

  • @muzisyenruhlu3754
    @muzisyenruhlu3754 Před 6 měsíci

    smooth

  • @oussamaXbs
    @oussamaXbs Před 2 lety +2

    u gave the worst example