An interactive simulation of core operating system concepts including CPU scheduling, memory management, process synchronization, and system calls — all visualized through a real-time graphical interface.
This project is a fully interactive Operating System Process Scheduler Simulator built in Java to demonstrate how modern operating systems manage processes and system resources internally.
The simulator visualizes:
- Process lifecycle transitions
- CPU scheduling execution
- Dynamic memory allocation
- Synchronization using mutexes
- Disk interactions
- Swapping and queue management
The project was designed to provide a hands-on understanding of low-level OS concepts that are typically difficult to visualize in theory alone.
Implemented multiple scheduling policies including:
- Round Robin (RR)
- First Come First Serve (FCFS)
- Priority Scheduling
The simulator allows dynamic switching between policies and visualizes how each affects process execution and waiting times.
-
Custom PCB (Process Control Block) implementation
-
Process states:
- Ready
- Running
- Blocked
- Finished
-
Queue management and scheduling cycles
- Dynamic allocation and deallocation
- Simulated memory partitions
- Swapping processes in/out of memory
- Disk persistence simulation
Implemented synchronization primitives to simulate:
- Mutual exclusion
- Resource locking
- Race condition prevention
- Reads programs directly from disk
- Parses instructions dynamically
- Loads processes into memory and scheduler queues
A custom Java GUI built to visualize:
- Ready queues
- Blocked queues
- Memory state
- Disk state
- Execution metrics
- Scheduler activity in real-time
The interface provides real-time visualization of scheduling queues, memory allocation, swapping activity, and execution metrics.
Operating-System/
│
├── Scheduler/
│ ├── RoundRobin
│ ├── FCFS
│ └── PriorityScheduler
│
├── Memory/
│ ├── MemoryManager
│ ├── DiskManager
│ └── Swapping
│
├── Process/
│ ├── PCB
│ ├── ProcessState
│ └── Instructions
│
├── Synchronization/
│ └── Mutex
│
├── Parser/
│ └── ProgramLoader
│
└── UI/
└── SchedulerUI
| Technology | Purpose |
|---|---|
| Java | Core application development |
| Java Swing / GUI | Interactive user interface |
| OOP Principles | System architecture |
| Data Structures | Queues, memory blocks, process handling |
| OS Algorithms | Scheduling & synchronization |
git clone https://github.com/omarkhalod/Operating-System.gitImport the project into:
- IntelliJ IDEA
- Eclipse
- VS Code (Java Extensions)
Run the main Java file:
Main.javaThe GUI will launch and allow interaction with scheduling policies and process execution.
This project significantly deepened my understanding of:
- Operating system internals
- CPU scheduling algorithms
- Memory management strategies
- Concurrency and synchronization
- Multi-process execution flow
- System-level software architecture
- Java GUI development
It was an excellent dive into how real operating systems coordinate processes and resources behind the scenes.
A short UI demo video is included in the repository showcasing:
- Scheduler execution
- Queue transitions
- Memory updates
- Process lifecycle management
Contributions, suggestions, and improvements are always welcome!
Feel free to:
- Fork the repository
- Open issues
- Submit pull requests
If you found this project interesting, consider giving the repository a star ⭐
It helps support future projects and improvements!
- GitHub: omarkhalod
- LinkedIn: Omar khaled
