{"id":19839606,"url":"https://github.com/pedrior/os-algorithms","last_synced_at":"2025-05-01T19:30:22.568Z","repository":{"id":152739647,"uuid":"612744786","full_name":"pedrior/os-algorithms","owner":"pedrior","description":null,"archived":true,"fork":false,"pushed_at":"2023-03-11T21:22:08.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-28T22:21:00.260Z","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/pedrior.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":"2023-03-11T21:05:43.000Z","updated_at":"2023-11-09T23:18:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"9cbcd69a-e1b2-4ac0-a4dd-19a4ca5411c9","html_url":"https://github.com/pedrior/os-algorithms","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/pedrior%2Fos-algorithms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrior%2Fos-algorithms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrior%2Fos-algorithms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrior%2Fos-algorithms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pedrior","download_url":"https://codeload.github.com/pedrior/os-algorithms/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251932520,"owners_count":21667157,"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-12T12:23:30.339Z","updated_at":"2025-05-01T19:30:22.563Z","avatar_url":"https://github.com/pedrior.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OS Agorithms\n\nThis repository contains the source code for process scheduling and page replacement algorithms that i've learned in the Operating Systems course. This is purely for educational purposes.\n\n## Process Scheduling Algorithms\n\nThe algorithms implemented are:\n\n- First Come First Serve (FCFS)\n\n- Shortest Job First (SJF)\n\n- Round Robin (RR)\n\n### Input\n\nThe input file should be a text file with the following format:\n\n```text\n0 20\n0 10\n4 6\n4 8\n```\n\nWhere the first column is the arrival time and the second column is the burst time.\n\n## Page Replacement Algorithms\n\nThe algorithms implemented are:\n\n- First In First Out (FIFO)\n\n- Least Recently Used (LRU)\n\n- Optimal (OPT)\n\n### Input\n\nThe input file should be a text file with the following format:\n\n```text\n4\n1\n2\n3\n4\n1\n2\n5\n1\n2\n3\n4\n5\n```\n\nWhere the first line is the number of frames and the rest of the lines are the page references.\n\n## How to run\n\nYou'll need a C++ compiler that supports C++17 at least. Then, you can compile the source code normally and run it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpedrior%2Fos-algorithms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpedrior%2Fos-algorithms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpedrior%2Fos-algorithms/lists"}