update comments for check_sync.c in lab7&lab7_result

This commit is contained in:
chyyuu
2016-05-10 10:04:03 +08:00
parent b12791a169
commit dbc1819174
2 changed files with 61 additions and 1 deletions

View File

@@ -167,7 +167,7 @@ int philosopher_using_semaphore(void * arg) /* i哲学家号码从0到N-1
struct proc_struct *philosopher_proc_condvar[N]; // N philosopher
int state_condvar[N]; // the philosopher's state: EATING, HUNGARY, THINKING
monitor_t mt, *mtp=&mt; // mp is mutex semaphore for monitor's procedures
monitor_t mt, *mtp=&mt; // monitor
void phi_test_condvar (i) {
if(state_condvar[i]==HUNGRY&&state_condvar[LEFT]!=EATING