{"id":30213544,"url":"https://github.com/some0ne11/disk-scheduling-algorithm","last_synced_at":"2026-05-20T07:04:21.427Z","repository":{"id":282035113,"uuid":"947263701","full_name":"Some0ne11/disk-scheduling-algorithm","owner":"Some0ne11","description":"This project implements First Come, First Serve (FCFS) and Shortest Seek Time First (SSTF) disk scheduling algorithms in C++.","archived":false,"fork":false,"pushed_at":"2025-08-13T04:20:13.000Z","size":20,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-13T06:23:13.708Z","etag":null,"topics":["cpp","fcfs-algorithm","fcfs-scheduling","ipynb","sstf","sstf-scheduling"],"latest_commit_sha":null,"homepage":"https://tinyurl.com/CST232-A2-PYNB","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Some0ne11.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2025-03-12T12:15:17.000Z","updated_at":"2025-08-13T04:20:16.000Z","dependencies_parsed_at":"2025-03-12T21:45:52.467Z","dependency_job_id":null,"html_url":"https://github.com/Some0ne11/disk-scheduling-algorithm","commit_stats":null,"previous_names":["some0ne11/disk-scheduling-algorithm"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Some0ne11/disk-scheduling-algorithm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Some0ne11%2Fdisk-scheduling-algorithm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Some0ne11%2Fdisk-scheduling-algorithm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Some0ne11%2Fdisk-scheduling-algorithm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Some0ne11%2Fdisk-scheduling-algorithm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Some0ne11","download_url":"https://codeload.github.com/Some0ne11/disk-scheduling-algorithm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Some0ne11%2Fdisk-scheduling-algorithm/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270330595,"owners_count":24565816,"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-08-13T02:00:09.904Z","response_time":66,"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":["cpp","fcfs-algorithm","fcfs-scheduling","ipynb","sstf","sstf-scheduling"],"created_at":"2025-08-13T23:10:28.395Z","updated_at":"2026-05-20T07:04:21.372Z","avatar_url":"https://github.com/Some0ne11.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\" style=\"font-weight: bold;\"\u003eFCFS and SSTF Disk Scheduling Algorithms\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"#overview\"\u003eProject Overview\u003c/a\u003e\n \u003cspan\u003e\u0026nbsp; • \u0026nbsp;\u003c/span\u003e\n\u003ca href=\"#pcode\"\u003eProgram's Code\u003c/a\u003e\n \u003cspan\u003e\u0026nbsp; • \u0026nbsp;\u003c/span\u003e\n\u003ca href=\"#install\"\u003eInstallation \u0026 Usage\u003c/a\u003e\n \u003cspan\u003e\u0026nbsp; • \u0026nbsp;\u003c/span\u003e\n\u003ca href=\"#example-out\"\u003eExample\u003c/a\u003e\n \u003cspan\u003e\u0026nbsp; • \u0026nbsp;\u003c/span\u003e\n\u003ca href=\"#future\"\u003eFuture Enhancement\u003c/a\u003e\n \u003cspan\u003e\u0026nbsp; • \u0026nbsp;\u003c/span\u003e\n\u003ca href=\"#license\"\u003eLicense\u003c/a\u003e\n \u003cspan\u003e\u0026nbsp; • \u0026nbsp;\u003c/span\u003e\n\u003ca href=\"#teams\"\u003eTeam Members\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003eThis project implements \u003cb\u003eFirst Come, First Serve (FCFS)\u003c/b\u003e and \u003cb\u003eShortest Seek Time First (SSTF)\u003c/b\u003e disk scheduling algorithms in C++.\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n🌐\u003ca href=\"https://colab.research.google.com/drive/1rlNiFl5Ahy4ulbV_WKDvWbaxwgoPmEwY?usp=sharing\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eVisit this Project's Playground\u003c/a\u003e\n\u003c/p\u003e\n\n\u003ch2 id=\"overview\"\u003e📌 Project Overview\u003c/h2\u003e\n\nDisk scheduling algorithms determine the order in which disk I/O requests are processed to optimize seek time and overall performance. This project provides:\n- A **C++ implementation** of both FCFS and SSTF.\n- User input for disk parameters and request queues.\n- Computation of total seek time for each algorithm.\n\n\u003ch2 id=\"pcode\"\u003e 📂 Program's Code \u003c/h2\u003e\n\n- `fcfs.cpp` - Implementation of the FCFS algorithm\n- `sstf.cpp` - Implementation of the SSTF algorithm\n\n\u003ch2 id=\"install\"\u003e 🛠️ Installation \u0026 Usage\u003c/h2\u003e\n\n### 1️⃣ Cloning the repository\n```bash\ngit clone https://github.com/Some0ne11/disk-scheduling-algorithm.git\ncd disk-scheduling-algorithm\n```\n\n### 2️⃣ Compile the Code\nYou can compile both programs using g++:\n```bash\n g++ fcfs.cpp -o fcfs\n g++ sstf.cpp -o sstf\n```\n\n### 3️⃣ Run the Executable\nFor FCFS:\n```bash\n ./fcfs\n```\nFor SSTF:\n```bash\n ./sstf\n```\n\n\u003ch2 id=\"example-out\"\u003e 📊 Example Output\u003c/h2\u003e\n\n### FCFS Example:\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003ccode\u003eoutput\u003c/code\u003e\u003c/summary\u003e\n\n```\nFirst Come, First Serve (FCFS) Disk Scheduling Algorithm: \n\n1. Please enter the total number of cylinders on the disk: 200\n2. Please enter the total number of I/O requests: 7\n3. Please enter the initial/current head position of the disk (0 to 199): 50\n\n4. Please enter the cylinder numbers in the Request Queue below:\nI/O request 1: 82\nI/O request 2: 170\nI/O request 3: 43\nI/O request 4: 140\nI/O request 5: 24\nI/O request 6: 16\nI/O request 7: 190\n\n5. Request sequence: {82, 170, 43, 140, 24, 16, 190}\n\n6. Order of processing: 50 -\u003e 82 -\u003e 170 -\u003e 43 -\u003e 140 -\u003e 24 -\u003e 16 -\u003e 190\n7. Total Seek Time: 642\n8. Average Seek Time: 91.7143\n\nSummary Table:\nRequest No.    Cylinder No.   Seek Time\n------------------------------------------\n1              82             32\n2              170            88\n3              43             127\n4              140            97\n5              24             116\n6              16             8\n7              190            174\n-------------------------------------------\n                              642\n```\n\u003c/details\u003e\n\n### SSTF Example:\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003ccode\u003eoutput\u003c/code\u003e\u003c/summary\u003e\n\n```\nShortest Seek Time First (SSTF) Disk Scheduling Algorithm: \n\n1. Please enter the total number of cylinders on the disk: 200\n2. Please enter the total number of I/O requests: 7\n3. Please enter the initial/current head position of the disk (0 to 199): 50\n\n4. Please enter the cylinder numbers in the Request Queue below:\nI/O request 1: 82\nI/O request 2: 170\nI/O request 3: 43\nI/O request 4: 140\nI/O request 5: 24\nI/O request 6: 16\nI/O request 7: 190\n\n5. Request sequence: {82, 170, 43, 140, 24, 16, 190}\n\n6. Order of processing: 50 -\u003e 43 -\u003e 24 -\u003e 16 -\u003e 82 -\u003e 140 -\u003e 170 -\u003e 190\n7. Total Seek Time: 208\n8. Average Seek Time: 29.7143\n\nSummary Table:\nRequest No.    Cylinder No.   Seek Time\n------------------------------------------\n1              43             7\n2              24             19\n3              16             8\n4              82             66\n5              140            58\n6              170            30\n7              190            20\n------------------------------------------\n                              208\n```\n\u003c/details\u003e\n\n\u003ch2 id=\"future\"\u003e 🏗️ Future Enhancements\u003c/h2\u003e\n\n- Add graphical visualization of the disk scheduling process.\n- Implement additional scheduling algorithms such as SCAN and C-SCAN.\n\n\u003ch2 id =\"license\"\u003e📜 License\u003c/h2\u003e\n\nThis project is licensed under the \u003ca href=\"LICENSE\"\u003eMIT License\u003c/a\u003e.\n\n\u003ch2 id=\"teams\"\u003e📌 Team Members \u003c/h2\u003e\n\n\u003cp\u003eSpecial thanks to all contributors of this project.\u003c/p\u003e\n\u003ctable\u003e\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e\n\u003ca href=\"https://github.com/Some0ne11\"\u003e\n\u003cimg src=\"https://avatars.githubusercontent.com/u/122141550?v=4\" width=\"100px;\" alt=\"Profile Picture\"/\u003e\u003cbr\u003e\n\u003csub\u003e\n\u003cb\u003eMuhammad Ammar Danial Bin Abdullah\u003c/b\u003e\n\u003c/sub\u003e\n\u003c/a\u003e\n\u003c/td\u003e\n\n\u003ctd align=\"center\"\u003e\n\u003ca href=\"#\"\u003e\n\u003cimg src=\"#\" width=\"100px;\" alt=\"Profile Picture\"/\u003e\u003cbr\u003e\n\u003csub\u003e\n\u003cb\u003eAshman Bin Mohd Fauzi\u003c/b\u003e\n\u003c/sub\u003e\n\u003c/a\u003e\n\u003c/td\u003e\n\n\u003ctd align=\"center\"\u003e\n\u003ca href=\"https://github.com/ngxuanhern\"\u003e\n\u003cimg src=\"https://avatars.githubusercontent.com/u/177940919?v=4\" width=\"100px;\" alt=\"Profile Picture\"/\u003e\u003cbr\u003e\n\u003csub\u003e\n\u003cb\u003eNg Xuan Hern\u003c/b\u003e\n\u003c/sub\u003e\n\u003c/a\u003e\n\u003c/td\u003e\n\n\u003ctd align=\"center\"\u003e\n\u003ca href=\"https://github.com/bringback1899\"\u003e\n\u003cimg src=\"https://avatars.githubusercontent.com/u/164884629?v=4\" width=\"100px;\" alt=\"Profile Picture\"/\u003e\u003cbr\u003e\n\u003csub\u003e\n\u003cb\u003eLim Wei Ling\u003c/b\u003e\n\u003c/sub\u003e\n\u003c/a\u003e\n\u003c/td\u003e\n\n\u003c/tr\u003e\n\u003c/table\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsome0ne11%2Fdisk-scheduling-algorithm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsome0ne11%2Fdisk-scheduling-algorithm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsome0ne11%2Fdisk-scheduling-algorithm/lists"}