CDN加速镜像 | 设为首页 | 加入收藏夹
当前位置: 首页 资源下载 源码下载 数值算法/人工智能 数据结构常用算法

文件名称:osBank

  • 所属分类:
  • 标签属性:
  • 上传时间:
    2012-11-16
  • 文件大小:
    1.07mb
  • 已下载:
    0次
  • 提 供 者:
  • 相关连接:
  • 下载说明:
    别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容来自于网络,使用问题请自行百度

3、银行家算法

设request:是Pi进程的请求向量,当Pi发了资源请求后,系统按下述步骤检查:

(1)如果Request[i]<= Need[i],则转向步骤(2);

(2)若Request[i] <=Available,则转向步骤(3);

(3)系统试探性地把要求的资源分配给进程Pi,并修改以下数据结构的值:

Available=Available-Request[i];

Allocation[i]= Allocation[i]+ Request[i];

Need[i]= Need[i]- Request[i];

(4)系统执行安全性算法,检查此次资源分配后,系统是否处于安全状态,若安全,才正式将资源分配给Pi进程,完成本次分配;否则,试探性分配作废,恢复原来的资源分配状态,Pi进程进入等待状态。

-3, the banker s algorithm

Set request: the request is the process of vector Pi, Pi made ​ ​ when the resource request, the system according to the following steps to check:

(1) If Request [i] <= Need [i], then go to step (2)

(2) If Request [i] <= Available, then go to step (3)

(3) system tentatively assigned to the resources required to process Pi, and modify the value of the following data structure:

Available = Available-Request [i]

Allocation [i] = Allocation [i]+ Request [i]

Need [i] = Need [i]- Request [i]

(4) system to perform security algorithms, checks the resource allocation, the system is in safe state if the security, formally allocate resources to Pi process, the completion of this assignment Otherwise, the tentative allocation set aside to restore the original resource distribution of state, Pi process enters a wait state.
(系统自动生成,下载前可以参看下载内容)

下载文件列表

osBank/
osBank/Debug/
osBank/Debug/osBank.exe
osBank/Debug/osBank.ilk
osBank/Debug/osBank.obj
osBank/Debug/osBank.pch
osBank/Debug/osBank.pdb
osBank/Debug/vc60.idb
osBank/Debug/vc60.pdb
osBank/osBank.cpp
osBank/osBank.dsp
osBank/osBank.dsw
osBank/osBank.ncb
osBank/osBank.opt
osBank/osBank.plg

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 搜珍网是交换下载平台,只提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。更多...
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或换浏览器;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*快速评论: 推荐 一般 有密码 和说明不符 不是源码或资料 文件不全 不能解压 纯粹是垃圾
*内  容:
*验 证 码:
搜珍网 www.dssz.com