{"id":18822889,"url":"https://github.com/salma-mamdoh/cpu-schedulers-simulator","last_synced_at":"2025-07-13T08:34:27.663Z","repository":{"id":251419228,"uuid":"729828269","full_name":"Salma-Mamdoh/CPU-Schedulers-Simulator","owner":"Salma-Mamdoh","description":"Our Project for Operating System Course taken during Winter 2023 semester","archived":false,"fork":false,"pushed_at":"2024-01-26T14:34:07.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-21T10:06:14.207Z","etag":null,"topics":["cpu-scheduling-algorithms","cpu-simulator","java","java-swing","operating-system"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Salma-Mamdoh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-10T13:40:51.000Z","updated_at":"2024-08-02T18:37:37.000Z","dependencies_parsed_at":"2024-08-02T22:53:08.361Z","dependency_job_id":null,"html_url":"https://github.com/Salma-Mamdoh/CPU-Schedulers-Simulator","commit_stats":null,"previous_names":["salma-mamdoh/cpu-schedulers-simulator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Salma-Mamdoh/CPU-Schedulers-Simulator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Salma-Mamdoh%2FCPU-Schedulers-Simulator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Salma-Mamdoh%2FCPU-Schedulers-Simulator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Salma-Mamdoh%2FCPU-Schedulers-Simulator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Salma-Mamdoh%2FCPU-Schedulers-Simulator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Salma-Mamdoh","download_url":"https://codeload.github.com/Salma-Mamdoh/CPU-Schedulers-Simulator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Salma-Mamdoh%2FCPU-Schedulers-Simulator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265109938,"owners_count":23712777,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpu-scheduling-algorithms","cpu-simulator","java","java-swing","operating-system"],"created_at":"2024-11-08T00:51:58.868Z","updated_at":"2025-07-13T08:34:27.620Z","avatar_url":"https://github.com/Salma-Mamdoh.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n\u003chead\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n  \u003ch1\u003eCPU Schedulers Simulator\u003c/h1\u003e\n\n  \u003ch2\u003eTable of Contents\u003c/h2\u003e\n  \u003cul\u003e\n    \u003cli\u003e\u003ca href=\"#introduction\"\u003eIntroduction\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#implemented-algorithms\"\u003eImplemented Algorithms\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#graphical-user-interface\"\u003eGraphical User Interface\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#project-overview\"\u003eProject Overview\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#usage\"\u003eUsage\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#contributing\"\u003eContributing\u003c/a\u003e\u003c/li\u003e\n  \u003c/ul\u003e\n\n  \u003ch2 id=\"introduction\"\u003eIntroduction\u003c/h2\u003e\n  \u003cp\u003e\n    Scheduling is a fundamental function of operating systems, and CPU scheduling plays a crucial role in resource utilization and system performance.\n    The CPU Schedulers Simulator is a Java program that simulates various CPU scheduling algorithms.\n    This project aims to provide a better understanding of different scheduling algorithms and their impact on process execution.\n  \u003c/p\u003e\n\n  \u003ch2 id=\"implemented-algorithms\"\u003eImplemented Algorithms\u003c/h2\u003e\n  \u003cp\u003e\n    The simulator currently implements the following CPU scheduling algorithms:\n  \u003c/p\u003e\n  \u003col\u003e\n    \u003cli\u003eNon-Preemptive Shortest-Job First (SJF) with context switching\u003c/li\u003e\n    \u003cli\u003eShortest-Remaining Time First (SRTF) Scheduling with starvation prevention\u003c/li\u003e\n    \u003cli\u003eNon-preemptive Priority Scheduling with starvation prevention\u003c/li\u003e\n    \u003cli\u003e\n      AG Scheduling:\n      \u003cul\u003e\n        \u003cli\u003eRound Robin (RR) Scheduling with AG-Factor\u003c/li\u003e\n        \u003cli\u003eAG-Factor calculation based on a combination of priority, arrival time, burst time, and a random function\u003c/li\u003e\n        \u003cli\u003ePreemptive and non-preemptive scheduling based on AG-Factor\u003c/li\u003e\n      \u003c/ul\u003e\n    \u003c/li\u003e\n  \u003c/ol\u003e\n\n  \u003ch2 id=\"graphical-user-interface\"\u003eGraphical User Interface\u003c/h2\u003e\n  \u003cp\u003e\n    The simulator features a graphical user interface (GUI) that provides a Simple visual representation of the process execution order.\n  \u003c/p\u003e\n\n  \u003ch2 id=\"project-overview\"\u003eProject Overview\u003c/h2\u003e\n  \u003cp\u003e\n    The CPU Schedulers Simulator allows you to input the necessary parameters for the simulation.\n    These parameters include the number of processes, time quantum for round-robin scheduling, and context switching time.\n    For each process, you provide the following details:\n  \u003c/p\u003e\n  \u003cul\u003e\n    \u003cli\u003eProcess Name\u003c/li\u003e\n    \u003cli\u003eProcess Color (for graphical representation)\u003c/li\u003e\n    \u003cli\u003eProcess Arrival Time\u003c/li\u003e\n    \u003cli\u003eProcess Burst Time\u003c/li\u003e\n    \u003cli\u003eProcess Priority Number (for priority scheduling)\u003c/li\u003e\n  \u003c/ul\u003e\n  \u003cp\u003e\n    The simulator outputs the execution order of processes, waiting times, turnaround times, average waiting time, average turnaround time,\n    and history updates of quantum time for AG Scheduling.\n    Additionally, it generates a graphical representation of the process execution order.\n  \u003c/p\u003e\n\n  \u003ch2 id=\"usage\"\u003eUsage\u003c/h2\u003e\n  \u003col\u003e\n    \u003cli\u003eClone the repository: \u003ccode\u003egit clone https://github.com/your-username/cpu-schedulers-simulator.git\u003c/code\u003e\u003c/li\u003e\n    \u003cli\u003eCompile the Java source files: \u003ccode\u003ejavac *.java\u003c/code\u003e\u003c/li\u003e\n    \u003cli\u003eRun the simulator: \u003ccode\u003ejava Main\u003c/code\u003e\u003c/li\u003e\n  \u003c/ol\u003e\n\n  \u003ch2 id=\"contributing\"\u003eContributing\u003c/h2\u003e\n  \u003cp\u003e\n    Contributions to the CPU Schedulers Simulator project are welcome.\n    If you encounter any issues or have suggestions for improvements, please open an issue or submit a pull request on the project's GitHub repository.\n  \u003c/p\u003e\n\n\u003c/body\u003e\n\u003c/html\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsalma-mamdoh%2Fcpu-schedulers-simulator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsalma-mamdoh%2Fcpu-schedulers-simulator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsalma-mamdoh%2Fcpu-schedulers-simulator/lists"}