{"id":25246258,"url":"https://github.com/mohamedyounis10/cpu-scheduling-algorithms-app","last_synced_at":"2026-05-14T23:42:51.960Z","repository":{"id":269607278,"uuid":"907974632","full_name":"mohamedyounis10/CPU-Scheduling-Algorithms-App","owner":"mohamedyounis10","description":"A Python app using CustomTkinter to visualize CPU scheduling algorithms like FCFS, SJF, SRTF, Priority, and Round Robin with Gantt chart representations.","archived":false,"fork":false,"pushed_at":"2024-12-24T18:58:17.000Z","size":71,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T21:26:52.230Z","etag":null,"topics":["cpu-scheduling","cpu-scheduling-algorithms","operating-systems","ui"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"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/mohamedyounis10.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":"2024-12-24T18:46:40.000Z","updated_at":"2024-12-24T19:01:55.000Z","dependencies_parsed_at":"2024-12-24T19:48:10.568Z","dependency_job_id":null,"html_url":"https://github.com/mohamedyounis10/CPU-Scheduling-Algorithms-App","commit_stats":null,"previous_names":["mohamedyounis10/cpu-scheduling-algorithms-app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mohamedyounis10/CPU-Scheduling-Algorithms-App","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohamedyounis10%2FCPU-Scheduling-Algorithms-App","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohamedyounis10%2FCPU-Scheduling-Algorithms-App/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohamedyounis10%2FCPU-Scheduling-Algorithms-App/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohamedyounis10%2FCPU-Scheduling-Algorithms-App/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mohamedyounis10","download_url":"https://codeload.github.com/mohamedyounis10/CPU-Scheduling-Algorithms-App/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohamedyounis10%2FCPU-Scheduling-Algorithms-App/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267127861,"owners_count":24040146,"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","status":"online","status_checked_at":"2025-07-26T02:00:08.937Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","cpu-scheduling-algorithms","operating-systems","ui"],"created_at":"2025-02-12T02:13:34.995Z","updated_at":"2026-05-14T23:42:51.887Z","avatar_url":"https://github.com/mohamedyounis10.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CPU Scheduling Algorithms\n\nThis repository contains two main components:\n\n1. **CPU Scheduling Algorithms**: Core implementations of CPU scheduling algorithms (without UI).\n2. **CPU Scheduling App with UI**: An interactive application for visualizing and running CPU scheduling algorithms, combining both the algorithms and a graphical user interface (GUI).\n\n---\n\n## Features\n\n- **Supported Algorithms**:\n  - First-Come First-Served (FCFS)\n  - Shortest Job First (SJF)\n  - Shortest Remaining Time First (SRTF)\n  - Priority Scheduling\n  - Round Robin (RR)\n- **Interactive UI**:\n  - Add processes dynamically.\n  - Visualize the Gantt Chart for each scheduling algorithm.\n  - Error handling for invalid inputs.\n- **Standalone Core Algorithms**:\n  - The `cpu_scheduling_algorithms.py` file contains the core implementations of scheduling algorithms, independent of the GUI.\n- **Integrated Application**:\n  - The `cpu_scheduling_app.py` file combines the algorithms and an interactive UI in a single application.\n\n---\n\n## Installation\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/mohamedyounis10/cpu-scheduling-app.git\n   cd cpu-scheduling-app\n   ```\n2. Install dependencies:\n   ```bash\n   pip install customtkinter matplotlib pillow\n   ```\n3. Run the GUI application:\n   ```bash\n   python cpu_scheduling_app.py\n   ```\n\n---\n\n## Screenshots\n\n### Welcome Screen\n\n![Screenshot 2024-12-24 205248](https://github.com/user-attachments/assets/83972a16-a743-4a87-ada7-34bcf02b60c8)\n\n\n### Main Application Interface\n\n![image](https://github.com/user-attachments/assets/cf45781d-6743-4c2e-9c6e-01592a5fff35)\n\n\n---\n\n## Usage\n\n### **Core Algorithm Usage**\n\nYou can use the core algorithms independently by importing them from the `cpu_scheduling_algorithms.py` file. Example:\n\n```python\nfrom cpu_scheduling_algorithms import FCFS, ProcessAttributes\n\nprocesses = [\n    ProcessAttributes(pid=\"P1\", BurstTime=5, ArrivalTime=0),\n    ProcessAttributes(pid=\"P2\", BurstTime=3, ArrivalTime=2),\n    ProcessAttributes(pid=\"P3\", BurstTime=8, ArrivalTime=4),\n]\n\nresult = FCFS(processes)\nprint(result)  # Output: [(\"P1\", 0, 5), (\"P2\", 5, 8), (\"P3\", 8, 16)]\n```\n\n### **GUI Usage**\n\n1. Launch the application and add processes by filling out the fields for Process ID, Burst Time, Arrival Time, and optionally Priority/Time Quantum.\n2. Select a scheduling algorithm.\n3. Click \"Run Algorithm\" to visualize the Gantt Chart.\n\n---\n\n## Files\n\n- **cpu\\_scheduling\\_app.py**: The main file for the GUI application that combines the scheduling algorithms and an interactive UI.\n- **cpu\\_scheduling\\_algorithms.py**: Contains core implementations of scheduling algorithms, designed to be used independently of any GUI.\n- **images/**: Directory for screenshots and other assets.\n\n---\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n---\n\n## Contributing\n\nContributions are welcome! Feel free to submit a pull request or open an issue to suggest improvements or report bugs.\n\n---\n\n## Author\n\nCreated by [Mohamed Younis](https://github.com/mohamedyounis10).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohamedyounis10%2Fcpu-scheduling-algorithms-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmohamedyounis10%2Fcpu-scheduling-algorithms-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohamedyounis10%2Fcpu-scheduling-algorithms-app/lists"}