Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

84 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Operating System Process Scheduler Simulator

Java OS Scheduler GUI Status

🖥️ A Java-based Operating System Scheduler Simulator

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.


📌 Overview

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.


✨ Features

⚙️ CPU Scheduling Algorithms

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.


🧠 Process Management

  • Custom PCB (Process Control Block) implementation

  • Process states:

    • Ready
    • Running
    • Blocked
    • Finished
  • Queue management and scheduling cycles


💾 Memory Management

  • Dynamic allocation and deallocation
  • Simulated memory partitions
  • Swapping processes in/out of memory
  • Disk persistence simulation

🔒 Synchronization & Mutexes

Implemented synchronization primitives to simulate:

  • Mutual exclusion
  • Resource locking
  • Race condition prevention

📂 Program Loader & Parser

  • Reads programs directly from disk
  • Parses instructions dynamically
  • Loads processes into memory and scheduler queues

📊 Interactive GUI

A custom Java GUI built to visualize:

  • Ready queues
  • Blocked queues
  • Memory state
  • Disk state
  • Execution metrics
  • Scheduler activity in real-time

🖼️ UI Preview

Operating System Scheduler UI

The interface provides real-time visualization of scheduling queues, memory allocation, swapping activity, and execution metrics.


🧱 Project Architecture

Operating-System/
│
├── Scheduler/
│   ├── RoundRobin
│   ├── FCFS
│   └── PriorityScheduler
│
├── Memory/
│   ├── MemoryManager
│   ├── DiskManager
│   └── Swapping
│
├── Process/
│   ├── PCB
│   ├── ProcessState
│   └── Instructions
│
├── Synchronization/
│   └── Mutex
│
├── Parser/
│   └── ProgramLoader
│
└── UI/
    └── SchedulerUI

🛠️ Tech Stack

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

🚀 Getting Started

Clone the Repository

git clone https://github.com/omarkhalod/Operating-System.git

Open the Project

Import the project into:

  • IntelliJ IDEA
  • Eclipse
  • VS Code (Java Extensions)

Run the Simulator

Run the main Java file:

Main.java

The GUI will launch and allow interaction with scheduling policies and process execution.


📈 What I Learned

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.


🎥 Demo

A short UI demo video is included in the repository showcasing:

  • Scheduler execution
  • Queue transitions
  • Memory updates
  • Process lifecycle management

🤝 Contributing

Contributions, suggestions, and improvements are always welcome!

Feel free to:

  • Fork the repository
  • Open issues
  • Submit pull requests

⭐ Support

If you found this project interesting, consider giving the repository a star ⭐

It helps support future projects and improvements!


📬 Contact

Omar Khaled


About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages