Searched refs:PhID (Results 1 – 1 of 1) sorted by relevance
71 int PhID = *(int *)ID; in philosopher() local76 think(PhID); in philosopher()82 state[PhID] = hungry; in philosopher()83 test(PhID); in philosopher()88 if (-1 == sem_wait(&ph[PhID])) { in philosopher()92 eat(PhID); in philosopher()98 state[PhID] = thinking; in philosopher()99 if ((PhID - 1) < 0) in philosopher()100 prePH = PH_NUM + (PhID - 1); in philosopher()102 prePH = (PhID - 1) % PH_NUM; in philosopher()[all …]