https://github.com/luizfelipedasilva678/sim-aging
Aging algorithm simulator
https://github.com/luizfelipedasilva678/sim-aging
c operating-system
Last synced: 25 days ago
JSON representation
Aging algorithm simulator
- Host: GitHub
- URL: https://github.com/luizfelipedasilva678/sim-aging
- Owner: luizfelipedasilva678
- Created: 2022-06-29T22:19:25.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-05T19:13:07.000Z (almost 4 years ago)
- Last Synced: 2025-01-17T09:11:51.057Z (over 1 year ago)
- Topics: c, operating-system
- Language: C
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simulator aging algorithm
## What is this?
This is simulator of aging algorith used to page substituition on OS.
## How can I execute this code?
The param of this program is a .txt file following format:
4 8
10101011
10000011
00111111
10000000
Where the first line of this file must have 2 numbers separed
whith one white space the first number is the size of aging register
and the second number is the quantity of pages of the system.
The following lines are the sequences of references bits of each
page.
## Output
The output of this code is a file where
each line corresponds to the value of the
register for each page and last line show the
page that must be substitued.
1011
0000
0101
0100
0101
0100
0111
0111