SlideShare una empresa de Scribd logo
1 de 10
Practical
 Assignment 2

  Saúl Gausin
Ramón González
FIFO
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.
LRU


This is the code of our
implementation of
LRU algorithm.

The principal
difference is that we
move the page
required to the end of
the array of elements
for know what page is
the most recently
used.
After execution
                                Again we compare our
                                results with Rinard notes.




In the execution of the
program you see a zero in the
firsts 3 lines, it means that
isn't any page in
that position in the memory.
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.
Other algorithms
Virtual memory

The relation between virtual
addresses and physical memory
addresses given by a page table.
TLB
Translation lookaside buffer is a CPU cache that memory
management hardware uses to improve virtual address translation
speed. All current desktop and server processors use a TLB to
map virtual and physical address spaces, and it is ubiquitous in
any hardware which utilizes virtual memory.
References

http://www.slideshare.net/ram_ari/memory-management-1355103
http://en.wikipedia.org/wiki/Translation_lookaside_buffer
http://people.csail.mit.edu/rinard/osnotes/




                         Thanks!

Más contenido relacionado

Destacado (6)

15.4 Recording returns in Stock Cards
15.4 Recording returns in Stock Cards15.4 Recording returns in Stock Cards
15.4 Recording returns in Stock Cards
 
Account Assignment Category
Account Assignment CategoryAccount Assignment Category
Account Assignment Category
 
Perpetual and periodic inventory method – inventories perpetual inventory method
Perpetual and periodic inventory method – inventories perpetual inventory methodPerpetual and periodic inventory method – inventories perpetual inventory method
Perpetual and periodic inventory method – inventories perpetual inventory method
 
9.3 Periodic vs Perpetual inventory system
9.3 Periodic vs Perpetual inventory system9.3 Periodic vs Perpetual inventory system
9.3 Periodic vs Perpetual inventory system
 
Periodic Inventory vs. Perpetual Inventory
Periodic Inventory vs. Perpetual InventoryPeriodic Inventory vs. Perpetual Inventory
Periodic Inventory vs. Perpetual Inventory
 
Chapter 8 perpetual inventory system clc
Chapter 8 perpetual inventory system clcChapter 8 perpetual inventory system clc
Chapter 8 perpetual inventory system clc
 

Similar a Assignment 2 Practical

Virtual memory
Virtual memoryVirtual memory
Virtual memory
Anuj Modi
 
Nachos 2 Practical Part
Nachos 2 Practical PartNachos 2 Practical Part
Nachos 2 Practical Part
Eduardo Triana
 
Nachos 2 Practical Part
Nachos 2 Practical PartNachos 2 Practical Part
Nachos 2 Practical Part
Eduardo Triana
 
virtual-memory-130126022841-phpapp01.pdf
virtual-memory-130126022841-phpapp01.pdfvirtual-memory-130126022841-phpapp01.pdf
virtual-memory-130126022841-phpapp01.pdf
ry54321288
 

Similar a Assignment 2 Practical (20)

Hybrid Page Replacement Algorithm
Hybrid Page Replacement AlgorithmHybrid Page Replacement Algorithm
Hybrid Page Replacement Algorithm
 
virtualmemory-111228090333-phpapp02 (1).pdf
virtualmemory-111228090333-phpapp02 (1).pdfvirtualmemory-111228090333-phpapp02 (1).pdf
virtualmemory-111228090333-phpapp02 (1).pdf
 
Virtual Memory in Operating System
Virtual Memory in Operating SystemVirtual Memory in Operating System
Virtual Memory in Operating System
 
Virtual memory
Virtual memoryVirtual memory
Virtual memory
 
Virtual memory
Virtual memoryVirtual memory
Virtual memory
 
Virtual memory
Virtual memoryVirtual memory
Virtual memory
 
Virtual memory ppts
Virtual memory pptsVirtual memory ppts
Virtual memory ppts
 
Practical 9
Practical 9Practical 9
Practical 9
 
Virtual memory
Virtual memoryVirtual memory
Virtual memory
 
Virtual memory ppt
Virtual memory pptVirtual memory ppt
Virtual memory ppt
 
Computer architecture ppt
Computer architecture pptComputer architecture ppt
Computer architecture ppt
 
Nachos 2 Practical Part
Nachos 2 Practical PartNachos 2 Practical Part
Nachos 2 Practical Part
 
Nachos 2 Practical Part
Nachos 2 Practical PartNachos 2 Practical Part
Nachos 2 Practical Part
 
virtual-memory-130126022841-phpapp01.pdf
virtual-memory-130126022841-phpapp01.pdfvirtual-memory-130126022841-phpapp01.pdf
virtual-memory-130126022841-phpapp01.pdf
 
STORAGE MANAGEMENT AND PAGING ALGORITHMS.pptx
STORAGE MANAGEMENT AND PAGING ALGORITHMS.pptxSTORAGE MANAGEMENT AND PAGING ALGORITHMS.pptx
STORAGE MANAGEMENT AND PAGING ALGORITHMS.pptx
 
Design and Implementation of Synchronous FIFO Interfaced with RAM.pptx
Design and Implementation of Synchronous FIFO Interfaced with RAM.pptxDesign and Implementation of Synchronous FIFO Interfaced with RAM.pptx
Design and Implementation of Synchronous FIFO Interfaced with RAM.pptx
 
Abhaycavirtual memory and the pagehit.pptx
Abhaycavirtual memory and the pagehit.pptxAbhaycavirtual memory and the pagehit.pptx
Abhaycavirtual memory and the pagehit.pptx
 
Os unit 2
Os unit 2Os unit 2
Os unit 2
 
Memory management in_windows_os
Memory management in_windows_osMemory management in_windows_os
Memory management in_windows_os
 
Sap to php
Sap to phpSap to php
Sap to php
 

Más de Esteban Gonzalez (10)

Proyecto Fase 4 - PSA
Proyecto Fase 4 - PSAProyecto Fase 4 - PSA
Proyecto Fase 4 - PSA
 
Proyecto Fase 3 - PSA
Proyecto Fase 3 - PSAProyecto Fase 3 - PSA
Proyecto Fase 3 - PSA
 
Assignment 2 Theoretical
Assignment 2 TheoreticalAssignment 2 Theoretical
Assignment 2 Theoretical
 
Proyecto Fase 1 - PSA
Proyecto Fase 1 - PSAProyecto Fase 1 - PSA
Proyecto Fase 1 - PSA
 
Problema de las 8 reinas
Problema de las 8 reinasProblema de las 8 reinas
Problema de las 8 reinas
 
Demostración final
Demostración finalDemostración final
Demostración final
 
Presentación final
Presentación finalPresentación final
Presentación final
 
Proyecto de Física Moderna
Proyecto de Física ModernaProyecto de Física Moderna
Proyecto de Física Moderna
 
Especificación técnica
Especificación técnicaEspecificación técnica
Especificación técnica
 
Presentación de proyecto
Presentación de proyectoPresentación de proyecto
Presentación de proyecto
 

Último

Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
MateoGardella
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 

Último (20)

Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 

Assignment 2 Practical