Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Assignment 2 Practical


Published on

Published in: Education, Technology
  • Be the first to comment

  • Be the first to like this

Assignment 2 Practical

  1. 1. Practical Assignment 2 Saúl GausinRamón González
  2. 2. FIFO
  3. 3. After execution We compare our results with Rinard notes. In this case we found an error in Rinard notes when page 4 enter in memory.
  4. 4. LRUThis is the code of ourimplementation ofLRU algorithm.The principaldifference is that wemove the pagerequired to the end ofthe array of elementsfor know what page isthe most recentlyused.
  5. 5. After execution Again we compare our results with Rinard notes.In the execution of theprogram you see a zero in thefirsts 3 lines, it means thatisnt any page inthat position in the memory.
  6. 6. FIFO vs LRU The difference is in the efficiency of each algorithm to avoid a greater number of page faults. Comparing these two types of algorithms can be summarized that the number of page faults in the FIFO is greater than the LRU.
  7. 7. Other algorithms
  8. 8. Virtual memoryThe relation between virtualaddresses and physical memoryaddresses given by a page table.
  9. 9. TLBTranslation lookaside buffer is a CPU cache that memorymanagement hardware uses to improve virtual address translationspeed. All current desktop and server processors use a TLB tomap virtual and physical address spaces, and it is ubiquitous inany hardware which utilizes virtual memory.
  10. 10. References Thanks!