银行家算法实验报告(10)
时间:2025-07-11
时间:2025-07-11
cout<<" "; }
cout<<endl; for(i=0;i<M;i++){ cout<<" "<<i<<" "; for(j=0;j<N;j++) cout<<Max[i][j]<<" "; cout<<" "; for(j=0;j<N;j++)
cout<<Allocation[i][j]<<" "; cout<<" "; for(j=0;j<N;j++) cout<<Need[i][j]<<" "; if(i==0){ cout<<" "; for (j=0;j<N;j++)
cout<<Avaliable[j]<<" ";//输出分配资源 }
cout<<endl; } }
int changdata(int i)//进行资源分配 { int j;
for (j=0;j<M;j++) {//p[j]=Avaliable[j];
上一篇:研发部-上年度工作总结
下一篇:五笔拆字规则和技巧