banker's algorithm

转载维基百科上一银行家算法源码://Bankers Algorithm#includeint Pcurr[3][3]; //max of 3 processes, 3 resourcesint Pmax[3][3];int avl[]={6,4,7};int avltemp[]={6,4,7};int maxres[]={6,4,7};int running[3]; //Which process

你可能感兴趣的:(banker's algorithm)