Skip to content

Implement Virtual Page Yable Register(VPTR, known as page table, CAM, TLB..etc) in memory.

Notifications You must be signed in to change notification settings

Tony080/VirtualPageTable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Virtual Page Table Simulation

This is another operation system simulation. For the virtual memory management.

PAGE SIZE = 16
MAX SECTORs AVAILABLE = 1000
MAX FRAMEs AVAILABE = 100
(defined in src/java/MemoryUtil.java)

Victim page selection algorithm: Least Frequently Used(LFU)

The program(Located in test/java/ManualTest.java) will:

  1. Ask user for the page numbers of their single program.
  2. Ask user for the frame numbers allocated to the program.
  3. Randomly generate the program counter's number(known as logical address).
  4. Look page table for the physical address. If not valid(the page not loaded into RAM yet), a page fault occurred, and set the time stamp to 1. If already there, increase the time stamp by 1.

Note that, there are also another JUnit5 tests available in test/java/MemoryUtilTest.java.

About

Implement Virtual Page Yable Register(VPTR, known as page table, CAM, TLB..etc) in memory.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages