int pmax[PNUMBER][SNUMBER]={{7,5,3},{3,2,2},{9,0,2},{2,2,2},{4,3,3}};//每个进程已经分配的资源情况,动态值 int allocation[PNUMBER][SNUMBER]={{0,0,0},{0,0,0},{0,0,0},{0,0,0},{0,0,0}};//每一个进程还需要的资源 int pneed[PNUMBER][SNUMBER]={{7,5,3}...