SlideShare ist ein Scribd-Unternehmen logo
1 von 18
Downloaden Sie, um offline zu lesen
Operating Systems
Virtual Memory
Virtual memory
The virtual memory is the separation between logical and
physical memory.

In order to avoid external fragmentation, we can divide the
information into smaller pieces called page frames, which
contain the data of that page.
When there is not enough space to run a process, we can
compact or relocate it. We can also swap to the disk a
process that is not being used. Then, when it becomes
available we can restore the process.
When we are looking for a process that is located in disk,
a page fault occur.
Problems



FIFO           The worst result (higher rate Belady Anomaly
               of page faults)


Optimization   the best result (lower rate of not implementable
               page faults)


LRU                                         too much information plus hardware.
                                            Las ultimas paginas introducidas
                                            recientemente, estan continuamente
                                            reemplazandose.

MFU                                         Las paginas mas populares se reemplazan
Pseudocode
 struct
array //data or elements initialized if b = null
                                     b address new data
a = null //count                     else
create b                             set pointer next address
                                     a++
if array not avaible
return true                          if b = null
else                                 return false
return false                         move data add pointer
                                     of d to data.
if b = full
return false
new space
move data to space
pointer new element/data
TLB
A translation lookaside buffer (TLB) is a cache memory
administrated by the MMU. It contains slots of the page table, it
also maps the relationship between virtual and physical
adresses.

The page table keeps the track of where the virtual pages are
loaded into the physical memory.
Pseudocode                if tlb = page faul
                          goto to page table

TLB                       update()
                          read swap
initializing user prog    move data to memory
initializing swapfile
                          if page table valid bit = true
if user prog = null       write swap
return false
else
swap = *user prog          find next tlb
                          if tlb dirty bits/data = true
initializing page table   page table dirty entry
                          up
pointer to address
File Systems
File systems
A file is a collection of information that is stored in the
secondary storage. Files can be programs , data, secuence
bits, bytes, lines, etc.

Files can store different information like programs, object
programs, executable programs, numerical data, text, registers,
images, sounds, etc.

File attributes:
 ● Name
 ● Type
 ● Location
 ● Size
 ● Protection
 ● Time, date and user identification
File operations

● Create a file
● Write a file
● Read a file
● Relocate inside a file
● Delete a file
● Cut a file
Access Methods

There are several ways that allow programs to access files.

Sequential access.
Open the file, read or write on it from beginning to end. Process an order, one
register after another
Direct access
Direct access specify the starting adress of the information. Allows
random access to any block of the file, it is a numbered sequence of
blocks and registers.

A direct access file allows to read or write arbitriary blocks, there are
no restrictions about the order or reading and writing.




Other method
Indexed access. Classify files by identifier (for example name),
then recover the record associated with name.
File systems

File systems structure stored information in a storage unit,
which is represented by a file manager in the form of text or a
graph

Storage devices are used to allow data access like a chain of
blocks of the same size, this blocks consist of data users add in
their files. This blocks are also called sectors, their usual size is
512 bytes.
Without a file system programs cannot be able to access data
by file name or directory and we would need to be able to
directly access data regions on a storage device.
File systems are used on data storage devices such as
magnetic storage disks or optical discs to maintain the physical
location of the computer files.
Directory operations
 ● Search a file
 ● Create a file
 ● Eliminate a file
 ● List a directory
 ● Change name of a file
 ● Travel filesystem

File protection is important and necessary because people
want to share files but not all aspects of all files. Unix have
three operations for files: read, write and execute. Files have an
owner and a group. For each of this operation there are
protections on basis of everybody, group and owner.
Pseudocode
Hash table

registro par { llave, valor }                           function asignar(llave, valor) {
var vector de pares casilla[0..numcasillas-1]
                                                          i := buscacasilla(llave)
function buscacasilla(llave) {                            if casilla[i] está ocupada
   i := hash(llave) módulo de numcasillas
   loop {                                                     casilla[i].valor := valor
       if casilla[i] esta libre or casilla[i].llave =
llave
                                                          else {
           return i                                           if tabla casi llena {
       i := (i + 1) módulo de numcasillas
   }                                                              hacer tabla más grande
}
                                                        (nota 1)
function busqueda(llave)                                          i := buscacasilla(llave)
  i := buscacasilla(llave)
  if casilla[i] está ocupada // llave está en                 }
la tabla
      return casilla[i].valor
                                                              casilla[i].llave := llave
  else                 // llave no está en la                 casilla[i].valor := valor
tabla
      return no encontrada                                }
                                                        }

Weitere ähnliche Inhalte

Was ist angesagt?

19 structured files
19 structured files19 structured files
19 structured filesashish61_scs
 
Data Structures(Part 1)
Data Structures(Part 1)Data Structures(Part 1)
Data Structures(Part 1)SURBHI SAROHA
 
Data structure & its types
Data structure & its typesData structure & its types
Data structure & its typesRameesha Sadaqat
 
File management in C++
File management in C++File management in C++
File management in C++apoorvaverma33
 
Execution of functions
Execution of functionsExecution of functions
Execution of functionsShashank Singh
 
Presentation on Data Structure
Presentation on Data StructurePresentation on Data Structure
Presentation on Data StructureA. N. M. Jubaer
 
computer notes - Data Structures - 13
computer notes - Data Structures - 13computer notes - Data Structures - 13
computer notes - Data Structures - 13ecomputernotes
 
Data export in matlab alvian zainuddin
Data export in matlab alvian zainuddinData export in matlab alvian zainuddin
Data export in matlab alvian zainuddinAlvianzainuddin
 
File Types in Data Structure
File Types in Data StructureFile Types in Data Structure
File Types in Data StructureProf Ansari
 
Lecture 1 data structures and algorithms
Lecture 1 data structures and algorithmsLecture 1 data structures and algorithms
Lecture 1 data structures and algorithmsAakash deep Singhal
 
Introduction of structure (2)
Introduction of structure (2)Introduction of structure (2)
Introduction of structure (2)Jatin Sharma
 
Mca ii dfs u-1 introduction to data structure
Mca ii dfs u-1 introduction to data structureMca ii dfs u-1 introduction to data structure
Mca ii dfs u-1 introduction to data structureRai University
 
Modern Database Systems - Lecture 01
Modern Database Systems - Lecture 01Modern Database Systems - Lecture 01
Modern Database Systems - Lecture 01Michael Mathioudakis
 
Introduction to data structure
Introduction to data structure Introduction to data structure
Introduction to data structure NUPOORAWSARMOL
 

Was ist angesagt? (20)

19 structured files
19 structured files19 structured files
19 structured files
 
Data Structures(Part 1)
Data Structures(Part 1)Data Structures(Part 1)
Data Structures(Part 1)
 
Contigious
ContigiousContigious
Contigious
 
Data structure & its types
Data structure & its typesData structure & its types
Data structure & its types
 
Data structure and its types.
Data structure and its types.Data structure and its types.
Data structure and its types.
 
File management in C++
File management in C++File management in C++
File management in C++
 
Execution of functions
Execution of functionsExecution of functions
Execution of functions
 
Lecture1 data structure(introduction)
Lecture1 data structure(introduction)Lecture1 data structure(introduction)
Lecture1 data structure(introduction)
 
File Management in C
File Management in CFile Management in C
File Management in C
 
Presentation on Data Structure
Presentation on Data StructurePresentation on Data Structure
Presentation on Data Structure
 
computer notes - Data Structures - 13
computer notes - Data Structures - 13computer notes - Data Structures - 13
computer notes - Data Structures - 13
 
Data structure
Data structureData structure
Data structure
 
Data export in matlab alvian zainuddin
Data export in matlab alvian zainuddinData export in matlab alvian zainuddin
Data export in matlab alvian zainuddin
 
File Types in Data Structure
File Types in Data StructureFile Types in Data Structure
File Types in Data Structure
 
Lecture 1 data structures and algorithms
Lecture 1 data structures and algorithmsLecture 1 data structures and algorithms
Lecture 1 data structures and algorithms
 
Introduction of structure (2)
Introduction of structure (2)Introduction of structure (2)
Introduction of structure (2)
 
Mca ii dfs u-1 introduction to data structure
Mca ii dfs u-1 introduction to data structureMca ii dfs u-1 introduction to data structure
Mca ii dfs u-1 introduction to data structure
 
Modern Database Systems - Lecture 01
Modern Database Systems - Lecture 01Modern Database Systems - Lecture 01
Modern Database Systems - Lecture 01
 
Introduction to data structure
Introduction to data structure Introduction to data structure
Introduction to data structure
 
Standard Library Functions
Standard Library FunctionsStandard Library Functions
Standard Library Functions
 

Ähnlich wie Nach os assignment_2_teorica

(C Program to Simulate a UNIX-based filesystem) My goal is to implem.docx
(C Program to Simulate a UNIX-based filesystem) My goal is to implem.docx(C Program to Simulate a UNIX-based filesystem) My goal is to implem.docx
(C Program to Simulate a UNIX-based filesystem) My goal is to implem.docxajoy21
 
UNIT 3a.pptx
UNIT 3a.pptxUNIT 3a.pptx
UNIT 3a.pptxjack881
 
C++ Notes by Hisham Ahmed Rizvi for Class 12th Board Exams
C++ Notes by Hisham Ahmed Rizvi for Class 12th Board ExamsC++ Notes by Hisham Ahmed Rizvi for Class 12th Board Exams
C++ Notes by Hisham Ahmed Rizvi for Class 12th Board Examshishamrizvi
 
DS UNIT3_LINKED LISTS.docx
DS UNIT3_LINKED LISTS.docxDS UNIT3_LINKED LISTS.docx
DS UNIT3_LINKED LISTS.docxVeerannaKotagi1
 
Once you have all the structures working as intended- it is time to co.docx
Once you have all the structures working as intended- it is time to co.docxOnce you have all the structures working as intended- it is time to co.docx
Once you have all the structures working as intended- it is time to co.docxfarrahkur54
 
L1 - Recap.pdf
L1 - Recap.pdfL1 - Recap.pdf
L1 - Recap.pdfIfat Nix
 
Hashmaps, Stacks and Queues by Chidera Anichebe.pdf
Hashmaps, Stacks and Queues by Chidera Anichebe.pdfHashmaps, Stacks and Queues by Chidera Anichebe.pdf
Hashmaps, Stacks and Queues by Chidera Anichebe.pdfChideraAnichebe
 
Tree Traversals A tree traversal is the process of visiting.pdf
Tree Traversals A tree traversal is the process of visiting.pdfTree Traversals A tree traversal is the process of visiting.pdf
Tree Traversals A tree traversal is the process of visiting.pdfajayadinathcomputers
 
File and directories in python
File and directories in pythonFile and directories in python
File and directories in pythonLifna C.S
 
Data Structures in C++I am really new to C++, so links are really .pdf
Data Structures in C++I am really new to C++, so links are really .pdfData Structures in C++I am really new to C++, so links are really .pdf
Data Structures in C++I am really new to C++, so links are really .pdfrohit219406
 
Data Structure (Dynamic Array and Linked List)
Data Structure (Dynamic Array and Linked List)Data Structure (Dynamic Array and Linked List)
Data Structure (Dynamic Array and Linked List)Adam Mukharil Bachtiar
 
Object Oriented Programming in PHP
Object Oriented Programming in PHPObject Oriented Programming in PHP
Object Oriented Programming in PHPLorna Mitchell
 

Ähnlich wie Nach os assignment_2_teorica (20)

Linked list
Linked list Linked list
Linked list
 
(C Program to Simulate a UNIX-based filesystem) My goal is to implem.docx
(C Program to Simulate a UNIX-based filesystem) My goal is to implem.docx(C Program to Simulate a UNIX-based filesystem) My goal is to implem.docx
(C Program to Simulate a UNIX-based filesystem) My goal is to implem.docx
 
UNIT 3a.pptx
UNIT 3a.pptxUNIT 3a.pptx
UNIT 3a.pptx
 
linkedlist.pptx
linkedlist.pptxlinkedlist.pptx
linkedlist.pptx
 
C++ Notes by Hisham Ahmed Rizvi for Class 12th Board Exams
C++ Notes by Hisham Ahmed Rizvi for Class 12th Board ExamsC++ Notes by Hisham Ahmed Rizvi for Class 12th Board Exams
C++ Notes by Hisham Ahmed Rizvi for Class 12th Board Exams
 
DS UNIT3_LINKED LISTS.docx
DS UNIT3_LINKED LISTS.docxDS UNIT3_LINKED LISTS.docx
DS UNIT3_LINKED LISTS.docx
 
Once you have all the structures working as intended- it is time to co.docx
Once you have all the structures working as intended- it is time to co.docxOnce you have all the structures working as intended- it is time to co.docx
Once you have all the structures working as intended- it is time to co.docx
 
L1 - Recap.pdf
L1 - Recap.pdfL1 - Recap.pdf
L1 - Recap.pdf
 
Hashmaps, Stacks and Queues by Chidera Anichebe.pdf
Hashmaps, Stacks and Queues by Chidera Anichebe.pdfHashmaps, Stacks and Queues by Chidera Anichebe.pdf
Hashmaps, Stacks and Queues by Chidera Anichebe.pdf
 
Tree Traversals A tree traversal is the process of visiting.pdf
Tree Traversals A tree traversal is the process of visiting.pdfTree Traversals A tree traversal is the process of visiting.pdf
Tree Traversals A tree traversal is the process of visiting.pdf
 
Database Homework Help
Database Homework HelpDatabase Homework Help
Database Homework Help
 
Unit VI
Unit VI Unit VI
Unit VI
 
File and directories in python
File and directories in pythonFile and directories in python
File and directories in python
 
Data Structures in C++I am really new to C++, so links are really .pdf
Data Structures in C++I am really new to C++, so links are really .pdfData Structures in C++I am really new to C++, so links are really .pdf
Data Structures in C++I am really new to C++, so links are really .pdf
 
set.pptx
set.pptxset.pptx
set.pptx
 
Data Structure (Dynamic Array and Linked List)
Data Structure (Dynamic Array and Linked List)Data Structure (Dynamic Array and Linked List)
Data Structure (Dynamic Array and Linked List)
 
Data Structure
Data StructureData Structure
Data Structure
 
DA_02_algorithms.pptx
DA_02_algorithms.pptxDA_02_algorithms.pptx
DA_02_algorithms.pptx
 
Object Oriented Programming in PHP
Object Oriented Programming in PHPObject Oriented Programming in PHP
Object Oriented Programming in PHP
 
OOPs Concept
OOPs ConceptOOPs Concept
OOPs Concept
 

Mehr von carmensp

Project vote Pseudoimplementación
Project vote PseudoimplementaciónProject vote Pseudoimplementación
Project vote Pseudoimplementacióncarmensp
 
Project vote Pseudoimplementacióm
Project vote PseudoimplementaciómProject vote Pseudoimplementacióm
Project vote Pseudoimplementaciómcarmensp
 
En la programación de computadoras
En la programación de computadorasEn la programación de computadoras
En la programación de computadorascarmensp
 
Proyecto Fase 2 - PSA
Proyecto Fase 2  - PSAProyecto Fase 2  - PSA
Proyecto Fase 2 - PSAcarmensp
 
Demostración final
Demostración finalDemostración final
Demostración finalcarmensp
 
Presentacion moodler
Presentacion moodlerPresentacion moodler
Presentacion moodlercarmensp
 
Presentación Final (clase)
Presentación Final (clase)Presentación Final (clase)
Presentación Final (clase)carmensp
 
Especificacion técnica
Especificacion técnica Especificacion técnica
Especificacion técnica carmensp
 
Presentación del Proyecto
Presentación del ProyectoPresentación del Proyecto
Presentación del Proyectocarmensp
 
Presentación del Proyecto
Presentación del ProyectoPresentación del Proyecto
Presentación del Proyectocarmensp
 
Presentacion del proyecto
Presentacion del proyectoPresentacion del proyecto
Presentacion del proyectocarmensp
 
Presentación del Proyecto
Presentación del ProyectoPresentación del Proyecto
Presentación del Proyectocarmensp
 
Distancia de edición
Distancia de ediciónDistancia de edición
Distancia de edicióncarmensp
 
Distancia de edicion(2)
Distancia de edicion(2)Distancia de edicion(2)
Distancia de edicion(2)carmensp
 
Ordenamiento por mezcla
Ordenamiento por mezclaOrdenamiento por mezcla
Ordenamiento por mezclacarmensp
 
Ordenamiento por mezcla
Ordenamiento por mezclaOrdenamiento por mezcla
Ordenamiento por mezclacarmensp
 
Ordenamiento por mezcla
Ordenamiento por mezclaOrdenamiento por mezcla
Ordenamiento por mezclacarmensp
 
Ordenamiento por mezcla
Ordenamiento por mezclaOrdenamiento por mezcla
Ordenamiento por mezclacarmensp
 
Análisis sintáctico
Análisis sintáctico Análisis sintáctico
Análisis sintáctico carmensp
 
Analizador sintáctico
Analizador sintácticoAnalizador sintáctico
Analizador sintácticocarmensp
 

Mehr von carmensp (20)

Project vote Pseudoimplementación
Project vote PseudoimplementaciónProject vote Pseudoimplementación
Project vote Pseudoimplementación
 
Project vote Pseudoimplementacióm
Project vote PseudoimplementaciómProject vote Pseudoimplementacióm
Project vote Pseudoimplementacióm
 
En la programación de computadoras
En la programación de computadorasEn la programación de computadoras
En la programación de computadoras
 
Proyecto Fase 2 - PSA
Proyecto Fase 2  - PSAProyecto Fase 2  - PSA
Proyecto Fase 2 - PSA
 
Demostración final
Demostración finalDemostración final
Demostración final
 
Presentacion moodler
Presentacion moodlerPresentacion moodler
Presentacion moodler
 
Presentación Final (clase)
Presentación Final (clase)Presentación Final (clase)
Presentación Final (clase)
 
Especificacion técnica
Especificacion técnica Especificacion técnica
Especificacion técnica
 
Presentación del Proyecto
Presentación del ProyectoPresentación del Proyecto
Presentación del Proyecto
 
Presentación del Proyecto
Presentación del ProyectoPresentación del Proyecto
Presentación del Proyecto
 
Presentacion del proyecto
Presentacion del proyectoPresentacion del proyecto
Presentacion del proyecto
 
Presentación del Proyecto
Presentación del ProyectoPresentación del Proyecto
Presentación del Proyecto
 
Distancia de edición
Distancia de ediciónDistancia de edición
Distancia de edición
 
Distancia de edicion(2)
Distancia de edicion(2)Distancia de edicion(2)
Distancia de edicion(2)
 
Ordenamiento por mezcla
Ordenamiento por mezclaOrdenamiento por mezcla
Ordenamiento por mezcla
 
Ordenamiento por mezcla
Ordenamiento por mezclaOrdenamiento por mezcla
Ordenamiento por mezcla
 
Ordenamiento por mezcla
Ordenamiento por mezclaOrdenamiento por mezcla
Ordenamiento por mezcla
 
Ordenamiento por mezcla
Ordenamiento por mezclaOrdenamiento por mezcla
Ordenamiento por mezcla
 
Análisis sintáctico
Análisis sintáctico Análisis sintáctico
Análisis sintáctico
 
Analizador sintáctico
Analizador sintácticoAnalizador sintáctico
Analizador sintáctico
 

Kürzlich hochgeladen

Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 

Kürzlich hochgeladen (20)

Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 

Nach os assignment_2_teorica

  • 3. Virtual memory The virtual memory is the separation between logical and physical memory. In order to avoid external fragmentation, we can divide the information into smaller pieces called page frames, which contain the data of that page.
  • 4. When there is not enough space to run a process, we can compact or relocate it. We can also swap to the disk a process that is not being used. Then, when it becomes available we can restore the process. When we are looking for a process that is located in disk, a page fault occur.
  • 5. Problems FIFO The worst result (higher rate Belady Anomaly of page faults) Optimization the best result (lower rate of not implementable page faults) LRU too much information plus hardware. Las ultimas paginas introducidas recientemente, estan continuamente reemplazandose. MFU Las paginas mas populares se reemplazan
  • 6. Pseudocode struct array //data or elements initialized if b = null b address new data a = null //count else create b set pointer next address a++ if array not avaible return true if b = null else return false return false move data add pointer of d to data. if b = full return false new space move data to space pointer new element/data
  • 7. TLB A translation lookaside buffer (TLB) is a cache memory administrated by the MMU. It contains slots of the page table, it also maps the relationship between virtual and physical adresses. The page table keeps the track of where the virtual pages are loaded into the physical memory.
  • 8. Pseudocode if tlb = page faul goto to page table TLB update() read swap initializing user prog move data to memory initializing swapfile if page table valid bit = true if user prog = null write swap return false else swap = *user prog find next tlb if tlb dirty bits/data = true initializing page table page table dirty entry up pointer to address
  • 10. File systems A file is a collection of information that is stored in the secondary storage. Files can be programs , data, secuence bits, bytes, lines, etc. Files can store different information like programs, object programs, executable programs, numerical data, text, registers, images, sounds, etc. File attributes: ● Name ● Type ● Location ● Size ● Protection ● Time, date and user identification
  • 11. File operations ● Create a file ● Write a file ● Read a file ● Relocate inside a file ● Delete a file ● Cut a file
  • 12. Access Methods There are several ways that allow programs to access files. Sequential access. Open the file, read or write on it from beginning to end. Process an order, one register after another
  • 13. Direct access Direct access specify the starting adress of the information. Allows random access to any block of the file, it is a numbered sequence of blocks and registers. A direct access file allows to read or write arbitriary blocks, there are no restrictions about the order or reading and writing. Other method Indexed access. Classify files by identifier (for example name), then recover the record associated with name.
  • 14. File systems File systems structure stored information in a storage unit, which is represented by a file manager in the form of text or a graph Storage devices are used to allow data access like a chain of blocks of the same size, this blocks consist of data users add in their files. This blocks are also called sectors, their usual size is 512 bytes.
  • 15.
  • 16. Without a file system programs cannot be able to access data by file name or directory and we would need to be able to directly access data regions on a storage device. File systems are used on data storage devices such as magnetic storage disks or optical discs to maintain the physical location of the computer files.
  • 17. Directory operations ● Search a file ● Create a file ● Eliminate a file ● List a directory ● Change name of a file ● Travel filesystem File protection is important and necessary because people want to share files but not all aspects of all files. Unix have three operations for files: read, write and execute. Files have an owner and a group. For each of this operation there are protections on basis of everybody, group and owner.
  • 18. Pseudocode Hash table registro par { llave, valor } function asignar(llave, valor) { var vector de pares casilla[0..numcasillas-1] i := buscacasilla(llave) function buscacasilla(llave) { if casilla[i] está ocupada i := hash(llave) módulo de numcasillas loop { casilla[i].valor := valor if casilla[i] esta libre or casilla[i].llave = llave else { return i if tabla casi llena { i := (i + 1) módulo de numcasillas } hacer tabla más grande } (nota 1) function busqueda(llave) i := buscacasilla(llave) i := buscacasilla(llave) if casilla[i] está ocupada // llave está en } la tabla return casilla[i].valor casilla[i].llave := llave else // llave no está en la casilla[i].valor := valor tabla return no encontrada } }