Memory Mapped IO Explanation and Experiment

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 ก.ย. 2024

ความคิดเห็น • 5

  • @ibrahimshebl5440
    @ibrahimshebl5440 4 ปีที่แล้ว +4

    would you please suggest some text book to follow ?

  • @parimi001
    @parimi001 2 หลายเดือนก่อน

    Very nice video but how long does this take to sync to disk from memory ?

  • @directx872
    @directx872 4 ปีที่แล้ว

    How is this different from calling a big read for the entirety of the file and then a big write?

    • @harshsharma57
      @harshsharma57 2 ปีที่แล้ว

      You're gonna need to store your big read somewhere in the memory (buffer) and that's exactly memory mapped IO

    • @directx872
      @directx872 ปีที่แล้ว

      @@DMWatchesTH-cam no. it does not. Read actually reads from disk.
      When you map a file to a page in your memory you tell your system to load that page when you are going to read it, as if it was a normal memory page that has been swapped to disk