W2 L3 More on Virtual Memory

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

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

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

    This is the best explanation of Virtual Memory ideas that I've ever seen. Thanks!

  • @aaradhanah5059
    @aaradhanah5059 5 ปีที่แล้ว +5

    I watched this video for 1 and 1/2 hours and completely understood the concept, its interesting to know whats happening behind the hood

  • @rupeshkathar8287
    @rupeshkathar8287 3 ปีที่แล้ว

    Thank you sir for detail explanation of process of conversion from virtual memory to physical memory. It is interesting to know how it works.

  • @ishanpalimkar9910
    @ishanpalimkar9910 6 ปีที่แล้ว +2

    Scintillating explanation specifically towards the end to give an end to end understanding of virtual memory using demand paging whilst how different components like MMU Processor and OS interact amongst themselves

  • @raviteja987
    @raviteja987 7 ปีที่แล้ว +2

    at 15:45, the program is not loaded into the ram yet, how can OS transfer control to the main fun? Please, sir, clarify it.

    • @nikhilkamat1996
      @nikhilkamat1996 7 ปีที่แล้ว +1

      The OS transfers control to the CPU to fetch the main function of the program from the program's virtual address space.

    • @nikhilkamat1996
      @nikhilkamat1996 7 ปีที่แล้ว

      This is what I think Sir meant there.

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

    Is the page table is ~4 MB because each entry contains the address to the start of a page frame, which is 32 bits, i.e., 4 B, and hence, the page table = 2^20*4 B = 4 MB? (It is roughly 4 MB because there are a few additional bits for state, permissions?)
    And is the RAM 4 GB because we are assuming each memory location to be 1 B, and there are 2^32 such memory locations?

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

    Thank you sir.

  • @bushrarahman7
    @bushrarahman7 5 ปีที่แล้ว

    In this example process is already in RAM. What is need of shifting from one place of ram to another. Or process need to shift from user space to kernel space. But in video professor said that from disk to ram. Totally confuse..

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

    9:20
    Why is it 4MB? Shouldn't it be 1MB.
    2^32 divided by 2^12 equals 2^20 = 1,048,576 entries of 4KB pages

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

      The page table has 2^20 entries. Each entry in the page table is of 4 Bytes. Therefore, the size of page table is 4*2^20 = 4MB. Note that the page table only contains the mapping between a block and the page. It does not contain the actual page.

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

      @@nitinchauhan530 Thank you for your response.

  • @pankajjayaswal8383
    @pankajjayaswal8383 7 ปีที่แล้ว

    what is the difference between virtual address and logical address? As both are generated by cpu ...are they used interchangeably.

    • @kapilrana834
      @kapilrana834 7 ปีที่แล้ว

      Yes, In a computer with virtual memory , the logical address is interchangeable.
      th-cam.com/video/3akTtCu_F_k/w-d-xo.html

    • @MalamIbnMalam
      @MalamIbnMalam 6 ปีที่แล้ว

      In essence, a Virtual Address is a Logical Address.

    • @keeranmnc1605
      @keeranmnc1605 5 ปีที่แล้ว

      A virtual address refers to the 32-bit (10-bits page-directory-table index, 10-bits page-table index, 12-bits page frame offset) address in a process's virtual address space and is the address printed out if we print the address of some variable in our code. It's the one that get's mapped to the physical address in RAM via the paging unit (page directory table and active page table). This is the same as the linear address, they are interchangeable.
      The logical address is different. It's the composite of the segmentation selector and the offset register and get's mapped to the linear-address/virtual-address via the segmentation unit.
      th-cam.com/video/GoI8xYCESiw/w-d-xo.html