-
Notifications
You must be signed in to change notification settings - Fork 0
/
pcb.h,v
119 lines (94 loc) · 1.14 KB
/
pcb.h,v
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
head 1.6;
access;
symbols;
locks
o2-yi:1.6; strict;
comment @ * @;
1.6
date 2016.10.09.00.09.42; author o2-yi; state Exp;
branches;
next 1.5;
1.5
date 2016.10.08.23.50.14; author o2-yi; state Exp;
branches;
next 1.4;
1.4
date 2016.10.08.23.40.35; author o2-yi; state Exp;
branches;
next 1.3;
1.3
date 2016.10.05.04.53.29; author o2-yi; state Exp;
branches;
next 1.2;
1.2
date 2016.10.03.04.15.25; author o2-yi; state Exp;
branches;
next 1.1;
1.1
date 2016.10.03.03.43.37; author o2-yi; state Exp;
branches;
next ;
desc
@@
1.6
log
@erased bakery algo stuff
@
text
@#ifndef PCB_H
#define PCB_H
#define MAXP 19
#define true 1
#define false 0
#define idle 0
#define want_in 1
#define in_cs 2
typedef struct pcb_ {
int pid [MAXP];
int flag[MAXP];
int turn;
int num_proc;
}pcb;
#define max(X,Y) ((X) < (Y) ? (X) : (Y))
#endif /* PCB_H */
@
1.5
log
@*** empty log message ***
@
text
@a11 2
int choosing [MAXP];
int number [MAXP];
@
1.4
log
@*** empty log message ***
@
text
@d17 1
@
1.3
log
@*** empty log message ***
@
text
@d7 3
d15 2
@
1.2
log
@*** empty log message ***
@
text
@d12 1
a12 1
}
@
1.1
log
@Initial revision
@
text
@d14 2
@