操作系统中的银行家算法(C#)

上传者: scnet812204564 | 上传时间: 2022-06-05 00:11:29 | 文件大小: 55KB | 文件类型: RAR
银行家算法:   我们可以把操作系统看作是银行家,操作系统管理的资源相当于银行家管理的资金,进程向操作系统请求分配资源相当于用户向银行家贷款。操作系统按照银行家制定的规则为进程分配资源,当进程首次申请资源时,要测试该进程对资源的最大需求量,如果系统现存的资源可以满足它的最大需求量则按当前的申请量分配资源,否则就推迟分配。当进程在执行中继续申请资源时,先测试该进程已占用的资源数与本次申请的资源数之和是否超过了该进程对资源的最大需求量。若超过则拒绝分配资源,若没有超过则再测试系统现存的资源能否满足该进程尚需的最大资源量,若能满足则按当前的申请量分配资源,否则也要推迟分配。   运行平台:Windows XP VS2005   编程语言:C#

文件下载

资源详情

[{"title":"( 23 个子文件 55KB ) 操作系统中的银行家算法(C#)","children":[{"title":"银行家算法","children":[{"title":"银行家算法.suo <span style='color:#111;'> 17.50KB </span>","children":null,"spread":false},{"title":"银行家算法","children":[{"title":"Form1.cs <span style='color:#111;'> 7.93KB </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"Debug","children":[{"title":"银行家算法.pdb <span style='color:#111;'> 45.50KB </span>","children":null,"spread":false},{"title":"银行家算法.vshost.exe.manifest <span style='color:#111;'> 490B </span>","children":null,"spread":false},{"title":"银行家算法.vshost.exe <span style='color:#111;'> 13.99KB </span>","children":null,"spread":false},{"title":"银行家算法.exe <span style='color:#111;'> 17.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"银行家算法.csproj <span style='color:#111;'> 3.65KB </span>","children":null,"spread":false},{"title":"VTune","children":[{"title":"银行家算法.vpj <span style='color:#111;'> 6.00KB </span>","children":null,"spread":false}],"spread":true},{"title":"obj","children":[{"title":"Debug","children":[{"title":"银行家算法.pdb <span style='color:#111;'> 45.50KB </span>","children":null,"spread":false},{"title":"银行家算法.csproj.FileListAbsolute.txt <span style='color:#111;'> 3.56KB </span>","children":null,"spread":false},{"title":"银行家算法.Form1.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"Refactor","children":null,"spread":false},{"title":"银行家算法.csproj.GenerateResource.Cache <span style='color:#111;'> 847B </span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"银行家算法.exe <span style='color:#111;'> 17.50KB </span>","children":null,"spread":false},{"title":"银行家算法.Properties.Resources.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Properties","children":[{"title":"Resources.Designer.cs <span style='color:#111;'> 2.81KB </span>","children":null,"spread":false},{"title":"Settings.settings <span style='color:#111;'> 249B </span>","children":null,"spread":false},{"title":"Resources.resx <span style='color:#111;'> 5.48KB </span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false}],"spread":true},{"title":"Program.cs <span style='color:#111;'> 496B </span>","children":null,"spread":false},{"title":"Form1.Designer.cs <span style='color:#111;'> 19.62KB </span>","children":null,"spread":false},{"title":"Form1.resx <span style='color:#111;'> 5.68KB </span>","children":null,"spread":false}],"spread":true},{"title":"银行家算法.sln <span style='color:#111;'> 935B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明