W2 L3 More on Virtual Memory

Поділитися
Вставка
  • Опубліковано 29 вер 2024

КОМЕНТАРІ • 17

  • @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

  • @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?

  • @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.

  • @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

  • @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..

  • @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.

  • @abhijeetsharma5715
    @abhijeetsharma5715 2 роки тому

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

  • @dhaneshpt8641
    @dhaneshpt8641 4 роки тому +1

    Thank you sir.

  • @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.
      ua-cam.com/video/3akTtCu_F_k/v-deo.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.
      ua-cam.com/video/GoI8xYCESiw/v-deo.html