nachos 2 practical part

12
NACHOS 2 PRACTICAL PART Carlos Eduardo Triana Sarmiento. Jonathan Alvarado Mata. Obed David Guevara Ibarra.

Upload: eduardo-triana

Post on 19-Jul-2015

203 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: Nachos 2 Practical Part

NACHOS 2 PRACTICAL PART

Carlos Eduardo Triana Sarmiento.Jonathan Alvarado Mata.

Obed David Guevara Ibarra.

Page 2: Nachos 2 Practical Part

Paging Algorithms

We tried to implement in nachOS the paging algorithms FIFO and LRU, but we have some errors when compiling.

To test our programs of paging algorithms we first made userprograms, while we were doing these user programs we had some errors so we implemented paging-swap programs

out of nachOS.

So that's why we wrote the paging algorithms in java

Here are the two programs (FIFO and LRU).

Page 3: Nachos 2 Practical Part

FIFO

Page 4: Nachos 2 Practical Part

FIFO second part

Page 5: Nachos 2 Practical Part

FIFO Result

Page 6: Nachos 2 Practical Part

LRU

Page 7: Nachos 2 Practical Part

LRU second part

Page 8: Nachos 2 Practical Part

LRU result

Page 9: Nachos 2 Practical Part

Page Table

A page table is the data structure used by a virtual memory system in a computer operating system to store the

mapping between virtual addresses and physical addresses.

Each address space within the system has associated with it a page table and a disk map. Each of these two tables

describe an *entire* address space. The page table identifies which pages are in main memory, and in which

page frames those pages are located. The disk map identifies where all the pages are on the disk. The entire

address space is on the disk, but only a subset of it is resident in main memory.

Page 10: Nachos 2 Practical Part
Page 11: Nachos 2 Practical Part

Page Table

Page 12: Nachos 2 Practical Part

Page Table result