資源簡介
銀行家算法c++完整實現,包括項目工程所有文件。
另可參考博客:https://blog.csdn.net/lingpy/article/details/79915768#commentsedit

代碼片段和文件信息
#include?
using?namespace?std;
int?main()
{
????????int?Max[5][3]?=?{{753}{322}{902}{222}{433}};
????????int?Allocation[5][3]?=?{010200302211002};
????????int?Need[5][3]?=?{743122600011431};
????????int?Available[3]?=?{332};
????????cout<<“?進程\\資源情況“<<“?Max(A?B?C)“<<“?Allocation(A?B?C)“<<“?Need(A?B?C)“<<“?Available(A?B?C)“;
????????cout<
????????for(int?k?=?0;k?5;k++){
????????????????cout<<“???“<<“P[“< ????????????????cout<<‘\t‘< ????????????????cout<<‘\t‘< ????????????????if(k?==?0)?{
????????????????????????cout<<‘\t‘< ????????????????}
????????????????cout< ????????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????935??2016-12-18?14:10??銀行家算法\12.cpp
?????文件????????328??2016-12-19?21:45??銀行家算法\Alldata.txt
?????文件????1068247??2016-12-20?13:49??銀行家算法\bin\Debug\OS課設.exe
?????文件????????104??2016-12-20?10:35??銀行家算法\data.txt
?????文件???????8450??2016-12-20?13:48??銀行家算法\main.cpp
?????文件??????26259??2016-12-20?13:49??銀行家算法\obj\Debug\main.o
?????文件??????????2??2016-12-18?10:42??銀行家算法\Unti
?????文件???????1109??2016-12-18?14:10??銀行家算法\銀行家算法.cbp
?????文件????????105??2016-12-20?10:36??銀行家算法\銀行家算法.depend
?????文件????????828??2016-12-20?13:49??銀行家算法\銀行家算法.layout
?????目錄??????????0??2016-12-20?21:19??銀行家算法\bin\Debug
?????目錄??????????0??2016-12-20?21:19??銀行家算法\obj\Debug
?????目錄??????????0??2016-12-20?21:19??銀行家算法\bin
?????目錄??????????0??2016-12-20?21:19??銀行家算法\obj
?????目錄??????????0??2016-12-20?21:19??銀行家算法
-----------?---------??----------?-----??----
??????????????1106367????????????????????15
評論
共有 條評論