https://github.com/paraspatil11/os-phase1-phase2
https://github.com/paraspatil11/os-phase1-phase2
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/paraspatil11/os-phase1-phase2
- Owner: paraspatil11
- Created: 2024-12-06T04:35:25.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-06T04:51:04.000Z (over 1 year ago)
- Last Synced: 2024-12-06T05:26:05.850Z (over 1 year ago)
- Language: Java
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OS-phase1-phase2
*Operating System Simulator for Phase 1 and Phase 2*
phase1.java:Implements basic memory management.
Simulates instruction execution with functionalities like load, store, compare, and branch operations.
Reads input from a file, processes instructions, and outputs results.
phase2.java:Extends functionality with page table implementation and virtual to physical address translation.
Handles interrupts (SI, TI, PI) and error management, such as page faults and operand errors.
Includes PCB (Process Control Block) for job management.
How to Use:
Place input files in the paths specified in the code:
Phase 1: D:\OS\phase1\src\input.txt
Phase 2: D:\OS\phase2\src\input_new.txt
Run the Java files:
javac phase1.java
java phase1
javac phase2.java
java phase2
Output will be saved to:
Phase 1: D:\OS\phase1\src\output.txt
Phase 2: D:\OS\phase2\src\output1.txt