{"id":19893785,"url":"https://github.com/255doesnotexist/bankers_algorithm","last_synced_at":"2026-06-12T15:31:02.574Z","repository":{"id":260404620,"uuid":"881192735","full_name":"255doesnotexist/bankers_algorithm","owner":"255doesnotexist","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-03T10:16:25.000Z","size":1190,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-27T09:34:41.808Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/255doesnotexist.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-10-31T04:24:31.000Z","updated_at":"2024-11-03T10:14:08.000Z","dependencies_parsed_at":"2025-01-11T19:50:11.943Z","dependency_job_id":"06e29857-debe-47c7-95e5-1d02405fe0a9","html_url":"https://github.com/255doesnotexist/bankers_algorithm","commit_stats":null,"previous_names":["255doesnotexist/bankers_algorithm"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/255doesnotexist/bankers_algorithm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/255doesnotexist%2Fbankers_algorithm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/255doesnotexist%2Fbankers_algorithm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/255doesnotexist%2Fbankers_algorithm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/255doesnotexist%2Fbankers_algorithm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/255doesnotexist","download_url":"https://codeload.github.com/255doesnotexist/bankers_algorithm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/255doesnotexist%2Fbankers_algorithm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34251774,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"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":[],"created_at":"2024-11-12T18:31:06.035Z","updated_at":"2026-06-12T15:31:02.536Z","avatar_url":"https://github.com/255doesnotexist.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 银行家算法实现\n\n这是一个使用 Rust 实现的银行家算法系统，用于进行死锁避免的资源分配管理。\n\n同时也是燕山大学操作系统课程的第一个小作业。本人在寒冷的 11 月完成全部内容。仅供参考，请勿抄袭。\n\n因仅是一个小作业，程序中可能无法用于生产实际，更适合作为教学演示程序。仓库的 commit log 也非常杂乱，请勿参考。\n\n## 使用说明\n\n1. 系统会从以下文件读取初始数据：\n   - available.txt: 可用资源向量\n   - max.txt: 最大需求矩阵  \n   - allocation.txt: 当前分配矩阵\n\n2. 使用方法：\n```bash\ncargo run --release\n```\n\n3. 运行后，系统会:\n   - 显示初始状态\n   - 执行安全性检查\n   - 进入交互式资源请求处理循环\n\n## 开发环境\n\n- Rust 2021 Edition\n- 依赖包:\n  - colored = \"2.1.0\" (美化输出)\n  - prettytable = \"0.10.0\" (表格显示)\n\n## 测试\n\n系统包含多个测试用例，可以通过以下命令运行:\n\n```bash\ncargo test\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F255doesnotexist%2Fbankers_algorithm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F255doesnotexist%2Fbankers_algorithm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F255doesnotexist%2Fbankers_algorithm/lists"}