首页 安全技术 网络攻防     /    银行家算法死锁避免可视化MFC

银行家算法死锁避免可视化MFC

上传者: chinasystem32 | 上传时间:2024/6/2 1:03:53 | 文件大小:2.04MB | 文件类型:rar
银行家算法死锁避免可视化MFC
本系统是为了能够使操作系统的进程能够正确地共享资源,并且不会因为共享资源而陷入死锁,对此,采用银行家算法。
把操作系统看作是银行家,操作系统管理的资源相当于银行家管理的资金,进程向操作系统请求分配资源相当于用户向银行家贷款。
操作系统按照银行家制定的规则为进程分配资源,当进程首次申请资源时,要测试该进程对资源的最大需求量,如果系统现存的资源可以满足它的最大需求量则按当前的申请量分配资源,否则就推迟分配。
当进程在执行中继续申请资源时,先测试该进程已占用的资源数与本次申请的资源数之和是否超过了该进程对资源的最大需求量。
若超过则拒绝分配资源,若没有超过则再测试系统现存的资源能否满足该进程尚需的最大资源量,若能满足则按当前的申请量分配资源,否则也要推迟分配 本软件ID:2554184

文件下载

资源详情

[{"title":"(50个子文件2.04MB)银行家算法死锁避免可视化MFC","children":[{"title":"Banker","children":[{"title":"StdAfx.cpp <span style='color:#111;'>208B</span>","children":null,"spread":false},{"title":"BankerDlg.h <span style='color:#111;'>2.31KB</span>","children":null,"spread":false},{"title":"resource.h <span style='color:#111;'>1.12KB</span>","children":null,"spread":false},{"title":"Banker.dsp <span style='color:#111;'>5.46KB</span>","children":null,"spread":false},{"title":"Banker.opt <span style='color:#111;'>48.50KB</span>","children":null,"spread":false},{"title":"InitDlg.cpp <span style='color:#111;'>1.12KB</span>","children":null,"spread":false},{"title":"rowcursor.cpp <span style='color:#111;'>500B</span>","children":null,"spread":false},{"title":"Banker.plg <span style='color:#111;'>2.44KB</span>","children":null,"spread":false},{"title":"rowcursor.h <span style='color:#111;'>1.09KB</span>","children":null,"spread":false},{"title":"msflexgrid.cpp <span style='color:#111;'>28.74KB</span>","children":null,"spread":false},{"title":"font.h <span style='color:#111;'>1.43KB</span>","children":null,"spread":false},{"title":"Banker.h <span style='color:#111;'>1.29KB</span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"BankerDlg.obj <span style='color:#111;'>128.77KB</span>","children":null,"spread":false},{"title":"Banker.obj <span style='color:#111;'>38.87KB</span>","children":null,"spread":false},{"title":"InitDlg.obj <span style='color:#111;'>20.06KB</span>","children":null,"spread":false},{"title":"vc60.pdb <span style='color:#111;'>468.00KB</span>","children":null,"spread":false},{"title":"Banker.res <span style='color:#111;'>4.22KB</span>","children":null,"spread":false},{"title":"Banker.pdb <span style='color:#111;'>425.00KB</span>","children":null,"spread":false},{"title":"vc60.idb <span style='color:#111;'>249.00KB</span>","children":null,"spread":false},{"title":"Banker.exe <span style='color:#111;'>156.11KB</span>","children":null,"spread":false},{"title":"rowcursor.obj <span style='color:#111;'>13.47KB</span>","children":null,"spread":false},{"title":"Banker.pch <span style='color:#111;'>5.31MB</span>","children":null,"spread":false},{"title":"font.obj <span style='color:#111;'>24.51KB</span>","children":null,"spread":false},{"title":"msflexgrid.obj <span style='color:#111;'>144.35KB</span>","children":null,"spread":false},{"title":"Banker.ilk <span style='color:#111;'>308.36KB</span>","children":null,"spread":false},{"title":"StdAfx.obj <span style='color:#111;'>103.56KB</span>","children":null,"spread":false},{"title":"picture.obj <span style='color:#111;'>17.23KB</span>","children":null,"spread":false}],"spread":false},{"title":"picture.cpp <span style='color:#111;'>1.10KB</span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'>3.50KB</span>","children":null,"spread":false},{"title":"msflexgrid.h <span style='color:#111;'>7.31KB</span>","children":null,"spread":false},{"title":"StdAfx.h <span style='color:#111;'>1.03KB</span>","children":null,"spread":false},{"title":"Max.txt <span style='color:#111;'>34B</span>","children":null,"spread":false},{"title":"Banker.cpp <span style='color:#111;'>2.33KB</span>","children":null,"spread":false},{"title":"Available.txt <span style='color:#111;'>5B</span>","children":null,"spread":false},{"title":"Banker.aps <span style='color:#111;'>37.87KB</span>","children":null,"spread":false},{"title":"font.cpp <span style='color:#111;'>2.05KB</span>","children":null,"spread":false},{"title":"Banker.clw <span style='color:#111;'>2.00KB</span>","children":null,"spread":false},{"title":"Banker.ncb <span style='color:#111;'>481.00KB</span>","children":null,"spread":false},{"title":"Banker.rc <span style='color:#111;'>10.79KB</span>","children":null,"spread":false},{"title":"Banker.dsw <span style='color:#111;'>564B</span>","children":null,"spread":false},{"title":"picture.h <span style='color:#111;'>1.26KB</span>","children":null,"spread":false},{"title":"res","children":[{"title":"Banker.ico <span style='color:#111;'>1.05KB</span>","children":null,"spread":false},{"title":"Banker.rc2 <span style='color:#111;'>398B</span>","children":null,"spread":false}],"spread":false},{"title":"Allocation.txt <span style='color:#111;'>33B</span>","children":null,"spread":false},{"title":"BankerDlg.cpp <span style='color:#111;'>23.82KB</span>","children":null,"spread":false},{"title":"InitDlg.h <span style='color:#111;'>1.20KB</span>","children":null,"spread":false}],"spread":false},{"title":"ReadMe.txt <span style='color:#111;'>20B</span>","children":null,"spread":false},{"title":"Max.txt <span style='color:#111;'>34B</span>","children":null,"spread":false},{"title":"Available.txt <span style='color:#111;'>5B</span>","children":null,"spread":false},{"title":"Allocation.txt <span style='color:#111;'>33B</span>","children":null,"spread":false}],"spread":true}]

评论信息

  • zhumeigigi:
    不错,代码很有用!2014-03-25
  • HeRo:
    很实用的代码,对我的学习有很多帮助2014-01-10
  • swtlg:
    挺好的,很使用,虽然很简单,对于初学者还是很有学习参考价值的2014-01-02
  • 苦逼党:
    挺好的,能运行2013-12-29
  • u010589246:
    还不错,可以用!2013-12-27

免责申明

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