{"id":17972796,"url":"https://github.com/patrickshaw/scheduling-simulator","last_synced_at":"2025-08-05T02:25:14.444Z","repository":{"id":85513126,"uuid":"89064582","full_name":"PatrickShaw/scheduling-simulator","owner":"PatrickShaw","description":"A simple proccess scheduling algorithm simulator. Can be used to calculate the completion times of various process scheduling algorithms.","archived":false,"fork":false,"pushed_at":"2017-04-22T13:03:03.000Z","size":2520,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T23:13:16.014Z","etag":null,"topics":["assignment","practice","python","schedule-simulator","simulation","study","university"],"latest_commit_sha":null,"homepage":"","language":"Python","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/PatrickShaw.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":"2017-04-22T11:23:24.000Z","updated_at":"2023-12-14T21:41:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"5efb6336-9622-4952-8a75-3699d85f8697","html_url":"https://github.com/PatrickShaw/scheduling-simulator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PatrickShaw/scheduling-simulator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickShaw%2Fscheduling-simulator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickShaw%2Fscheduling-simulator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickShaw%2Fscheduling-simulator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickShaw%2Fscheduling-simulator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PatrickShaw","download_url":"https://codeload.github.com/PatrickShaw/scheduling-simulator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickShaw%2Fscheduling-simulator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268820967,"owners_count":24312532,"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-05T02:00:12.334Z","response_time":2576,"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":["assignment","practice","python","schedule-simulator","simulation","study","university"],"created_at":"2024-10-29T16:25:51.972Z","updated_at":"2025-08-05T02:25:14.371Z","avatar_url":"https://github.com/PatrickShaw.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Process simulator\n## FIT2070 Operating Systems Assignment 3\n### Installation and running Python tasks\n1. Open the *26898187_A3* folder.\n2. Open a terminal in the folder, or change into the folder from a previously created terminal.\n3. Run the command `python3 `**`\u003ctask_x.py\u003e`**` ./processes.txt` where **`\u003ctask_x.py\u003e`** the desired assignment task to be run.\n4. The specified task should now run and begin outputting the information for the specific program.\n**Note:** It is important that you run the program with Python 3 and not Python 2.\n\n\n#### Extra options\nThere are two options available that may be added onto the end of the previously stated command:\n    - `-i` immediately outputs process information to the console.\n    - `-d` prints debugging information output to the console\n\n### Example execution 1\n![Example execution 1](doc/images/example_execution_1.jpg)\nThe information of each process is printed out in the order that they finish and finally the average waiting time, turnaround time and throughput are printed at the end.\n\n### Example execution 2\n![Example execution 2](doc/images/example_execution_2.jpg)\nNote that the inclusion of `-d` provides extra information during the execution of the simulation. This may help with checking the correctness of each scheduler algorithm.\n\n### Summary of source code structure and style\n#### Important files\n- *task_1.py*, *task_2.py* and *task_3.py* contain the scripts to be run to output the process information as specified in the Assignment 3 specification.\n- The *./scheduler* directory contains all data pertaining to the scheduler and simulation logic.\n- ***fcfs_scheduler.py*:** Specifies the First Come First Served scheduler algorithm.\n- ***round_robin.scheduler.py*:** Specifies the Round Robin scheduler algorithm.\n- ***srt_scheduler.py*:** Specifies the Shortest Remaining Time scheduler algorithm.\n\n#### Coding style and architecture\nThe code base makes use of Sphinx Python doc strings; the feature can be utilised to its fullest with many popular IDEs such as PyCharm.\n- The observer pattern, supplemented with functional programming (namely, lambda functions), is implemented in the scheduler and process in order to easily modularise what is outputted to the console.\n- All schedulers make use of inheritance from a base abstract Scheduler class for easy reuse of code.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickshaw%2Fscheduling-simulator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatrickshaw%2Fscheduling-simulator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickshaw%2Fscheduling-simulator/lists"}