{"id":21229652,"url":"https://github.com/sameetasadullah/cpu-scheduling-simulator","last_synced_at":"2026-04-15T07:38:58.827Z","repository":{"id":54700469,"uuid":"522596810","full_name":"SameetAsadullah/CPU-Scheduling-Simulator","owner":"SameetAsadullah","description":"C++ program to simulate different Operating system scheduling algorithms i.e, FCFS, RR, SJF using dup/dup2, fork, exec, and inter-process communication primitives","archived":false,"fork":false,"pushed_at":"2022-08-08T15:52:32.000Z","size":1157,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-15T02:14:50.097Z","etag":null,"topics":["cpp","dup","dup2","exec","fcfs-scheduling","fork","inter-process-communication","linux","named-pipes","rr-scheduling","sjf-scheduling","ubuntu"],"latest_commit_sha":null,"homepage":"","language":"C++","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/SameetAsadullah.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}},"created_at":"2022-08-08T15:04:48.000Z","updated_at":"2024-07-10T12:00:22.000Z","dependencies_parsed_at":"2022-08-14T00:30:31.344Z","dependency_job_id":null,"html_url":"https://github.com/SameetAsadullah/CPU-Scheduling-Simulator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SameetAsadullah/CPU-Scheduling-Simulator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SameetAsadullah%2FCPU-Scheduling-Simulator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SameetAsadullah%2FCPU-Scheduling-Simulator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SameetAsadullah%2FCPU-Scheduling-Simulator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SameetAsadullah%2FCPU-Scheduling-Simulator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SameetAsadullah","download_url":"https://codeload.github.com/SameetAsadullah/CPU-Scheduling-Simulator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SameetAsadullah%2FCPU-Scheduling-Simulator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268629582,"owners_count":24281172,"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-03T02:00:12.545Z","response_time":2577,"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","dup","dup2","exec","fcfs-scheduling","fork","inter-process-communication","linux","named-pipes","rr-scheduling","sjf-scheduling","ubuntu"],"created_at":"2024-11-20T23:28:52.175Z","updated_at":"2026-04-15T07:38:53.795Z","avatar_url":"https://github.com/SameetAsadullah.png","language":"C++","readme":"\u003ch1 align=\"center\"\u003eCPU Scheduling Simulator\u003c/h1\u003e\n\n### Description\n`C++ Program` to simulate different `Operating System Scheduling Algorithms` using dup/dup2, fork, exec, and inter-process communication primitives. \n\n### Algorithms Implemented\n- Round Robin (RR)\n- First Come First Serve (FCFS)\n- Shortest Job First (SJF)\n\n### Manual\n1) Use the following command to `Compile the Code`:\n    ```\n    g++ 5_state_model_simulator.cpp\n    ```\n\n2) Use the following command to `Run the Code`:\n    ```\n    ./a.out\n    ```\n3) You can `Change Processes` in the files named as Sample_1_RR.txt, Sample_2_FCFS.txt, Sample_4_SJF.txt. Its format is given below:\n    - First line indicates scheduling algorithm to perform.\n    - Second line indicates quantum for RR.\n    - Further lines indicate process number, its arrival time, and its cpu burst required.\n4) You can see `Final Output` i.e, throughput, average waiting time, average turnaround time in the file named as `processes_stats.txt`\n    \n### Working Screenshots\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src = \"https://github.com/SameetAsadullah/CPU-Scheduling-Simulator/blob/main/extras/working-ss-1.png\" alt = \"\" width=\"700px\"/\u003e\n\u003c/div\u003e\n\u003cbr/\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src = \"https://github.com/SameetAsadullah/CPU-Scheduling-Simulator/blob/main/extras/working-ss-2.png\" alt = \"\" width=\"700px\"/\u003e\n\u003c/div\u003e\n\u003cbr/\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src = \"https://github.com/SameetAsadullah/CPU-Scheduling-Simulator/blob/main/extras/working-ss-3.png\" alt = \"\" width=\"700px\"/\u003e\n\u003c/div\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsameetasadullah%2Fcpu-scheduling-simulator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsameetasadullah%2Fcpu-scheduling-simulator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsameetasadullah%2Fcpu-scheduling-simulator/lists"}