Searched refs:PH_NUM (Results 1 – 1 of 1) sorted by relevance
24 #define PH_NUM 5 macro30 sem_t ph[PH_NUM];33 int state[PH_NUM];51 preID = PH_NUM + (ID - 1); in test()53 preID = (ID - 1) % PH_NUM; in test()55 if ((ID + 1) >= PH_NUM) in test()56 postID = ID + 1 - PH_NUM; in test()58 postID = (ID + 1) % PH_NUM; in test()100 prePH = PH_NUM + (PhID - 1); in philosopher()102 prePH = (PhID - 1) % PH_NUM; in philosopher()[all …]