文件名称:Banker_arithmetic
介绍说明--下载内容均来自于网络,请自行研究使用
关于银行家算法的实现,其中的思想为:
银行家可以把一定数量的资金供多个用户周转使用,为保证资金的安全银行家规定:
1.当一个用户对资金的最大需求量不超过银行家现有的资金就要接纳该用户
2.用户可以分期贷款,但垡的总数不能超过最大需求量
3.当银行家现有的资金不能满足用户的沿需垡数时,对用户的贷款可推迟支付,但总能使用户在有限的时间里得到贷款
4当用户得到所需的全部资金后,一定能在有限的时间里归还所有的资金.
-bankers algorithm on the realization of the idea is as follows : bankers can be a certain amount of funds for working capital to use multiple users, in order to guarantee the safety of funds bankers : 1. When a user of the biggest demand for funds does not exceed the funds available bankers have accepted the users. users can loan installments, but the plow can not exceed the total demand for the biggest three. bankers existing funds can not meet the user's need to plow a few along, users of the loan may be deferred payment, but enables users to the limited time loan four when users receive all the money, will the limited time return of all funds.
银行家可以把一定数量的资金供多个用户周转使用,为保证资金的安全银行家规定:
1.当一个用户对资金的最大需求量不超过银行家现有的资金就要接纳该用户
2.用户可以分期贷款,但垡的总数不能超过最大需求量
3.当银行家现有的资金不能满足用户的沿需垡数时,对用户的贷款可推迟支付,但总能使用户在有限的时间里得到贷款
4当用户得到所需的全部资金后,一定能在有限的时间里归还所有的资金.
-bankers algorithm on the realization of the idea is as follows : bankers can be a certain amount of funds for working capital to use multiple users, in order to guarantee the safety of funds bankers : 1. When a user of the biggest demand for funds does not exceed the funds available bankers have accepted the users. users can loan installments, but the plow can not exceed the total demand for the biggest three. bankers existing funds can not meet the user's need to plow a few along, users of the loan may be deferred payment, but enables users to the limited time loan four when users receive all the money, will the limited time return of all funds.
相关搜索: 银行家算法
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Banker_arithmetic.cpp