{"id":20955839,"url":"https://github.com/achrovisual/cpu-scheduler-simulator","last_synced_at":"2025-07-08T20:34:52.247Z","repository":{"id":54870701,"uuid":"329520101","full_name":"achrovisual/cpu-scheduler-simulator","owner":"achrovisual","description":"This is a simple C program that simulates basic CPU scheduling algorithms.","archived":false,"fork":false,"pushed_at":"2021-01-25T05:11:31.000Z","size":1786,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-19T23:36:37.426Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/achrovisual.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":"2021-01-14T05:49:25.000Z","updated_at":"2024-05-30T14:05:47.000Z","dependencies_parsed_at":"2022-08-14T05:20:14.057Z","dependency_job_id":null,"html_url":"https://github.com/achrovisual/cpu-scheduler-simulator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/achrovisual%2Fcpu-scheduler-simulator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/achrovisual%2Fcpu-scheduler-simulator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/achrovisual%2Fcpu-scheduler-simulator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/achrovisual%2Fcpu-scheduler-simulator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/achrovisual","download_url":"https://codeload.github.com/achrovisual/cpu-scheduler-simulator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243351862,"owners_count":20276911,"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":[],"created_at":"2024-11-19T01:21:36.946Z","updated_at":"2025-03-13T05:44:12.439Z","avatar_url":"https://github.com/achrovisual.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CPU Scheduling Simulator\nThis is a simple C program that simulates basic CPU scheduling algorithms.\n\n## How to Compile\nYou can invoke gcc compiler however you want, but in this example, you can execute the short command below to compile the code in macOS or Linux.\n```\ncc simulator.c\n```\nTo run the program, just open the binary executable produced in terminal.\n\n## Algorithms Supported\nThis program simulates the following CPU scheduling algorithms:\n* First Come, First Served\n* Non-Preemptive Shortest Job First\n* Preemptive Shortest Job First\n* Round Robin\n\n## Test Cases\nThe test cases can be found in the *tests* folder. You can also find the results for these in the *results* subfolder.\n\nIf you would want to use your own test case, follow this format for the file:\n* The first line contains 3 integers separated by space, 𝑋 𝑌 𝑍.\n* 𝑋 denotes the CPU scheduling algorithm. Refer to the table below for the corresponding values.\n* 𝑌 denotes the number of processes, where 3 ≤ 𝑌 ≤ 100.\n* 𝑍 denotes a time slice value (applicable for Round-Robin algorithm only), where 1 ≤ 𝑍 ≤ 100.\n\n| CPU Scheduling Algorithm  | Value of 𝑋 |\n| ------------- | ------------- |\n| First Come, First Served | 0 |\n| Non-Preemptive Shortest Job First | 1 |\n| Preemptive Shortest Job First | 2 |\n| Round Robin | 3 |\n\n## Screenshots\n![alt text](/preview.png \"Terminal displaying results of test cases.\")\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fachrovisual%2Fcpu-scheduler-simulator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fachrovisual%2Fcpu-scheduler-simulator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fachrovisual%2Fcpu-scheduler-simulator/lists"}