#include int checkService(int avail[],int need[],int n){ for(int i=0;i2*n){ printf("\nThere is no safe sequence\nDEADLOCK STATE\n"); break; } } if(count==n){ printf("\nSAFE SEQUENCE\n"); for(i=0;i ",temp[i]); } printf("\n"); } }