{"id":27958386,"url":"https://github.com/zwldarren/prmanager","last_synced_at":"2025-05-07T18:22:53.977Z","repository":{"id":235039795,"uuid":"789950642","full_name":"zwldarren/PRManager","owner":"zwldarren","description":null,"archived":false,"fork":false,"pushed_at":"2024-05-02T20:30:07.000Z","size":47,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-03T12:03:28.100Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zwldarren.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-04-22T01:21:36.000Z","updated_at":"2024-05-02T20:30:11.000Z","dependencies_parsed_at":"2024-04-29T09:55:38.465Z","dependency_job_id":null,"html_url":"https://github.com/zwldarren/PRManager","commit_stats":null,"previous_names":["zwldarren/143b_p1","zwldarren/prmanager"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zwldarren%2FPRManager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zwldarren%2FPRManager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zwldarren%2FPRManager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zwldarren%2FPRManager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zwldarren","download_url":"https://codeload.github.com/zwldarren/PRManager/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252932076,"owners_count":21827220,"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":"2025-05-07T18:22:53.401Z","updated_at":"2025-05-07T18:22:53.969Z","avatar_url":"https://github.com/zwldarren.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# P1: Process and Resource Management\n\nThis project develops a simple process and resource manager.\n\n## Getting Started\n\n### Usage\n\nTo run the project:\n```bash\n./PRManager --input \u003cinput.txt\u003e --output \u003coutput.txt\u003e\n```\n\n### Building from Source\n\nIf you prefer to build from source, follow these steps:\n\n```bash\ncmake . -B build\ncmake --build build\n```\n\n## Command Reference\n\nThe following commands are used for input:\n\n| Command | Description |\n| ------------- | ------------- |\n|in \\\u003cn\u003e \\\u003cu0\u003e \\\u003cu1\u003e \\\u003cu2\u003e \\\u003cu3\u003e |Restore the system to its initial state, with n priority levels and resources 0-3 having \\\u003cu0\u003e, \\\u003cu1\u003e, \\\u003cu2\u003e, \\\u003cu3\u003e units respectively|\n|id\t|Equivalent to \"in 3 1 1 2 3\"| \n|cr \\\u003cp\u003e\t| Create a new process at priority level \\\u003cp\u003e. \\\u003cp\u003e can be 1 or 2.|\n| de \\\u003ci\u003e | Destroy the process identified by the PCB index \\\u003ci\u003e, and all of its descendants |\n| rq \\\u003cr\u003e \\\u003ck\u003e\t| Request \\\u003ck\u003e units of resource \\\u003cr\u003e|\n| rl \\\u003cr\u003e \\\u003ck\u003e\t| Release \\\u003ck\u003e units of resource \\\u003cr\u003e. \\\u003cr\u003e can be 0, 1, 2, or 3 | \n| to | Invoke the timeout function |\n\nFor each input command, output the index of the process running next, as a single integer separated by a space.\nIf an error occurs, output -1.\nA new line starts for each in or id command.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzwldarren%2Fprmanager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzwldarren%2Fprmanager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzwldarren%2Fprmanager/lists"}