Question 71
Question 72
Question 73
void barrier (void) {
1: P(S);
2: process_arrived++;
3. V(S);
4: while (process_arrived !=3);
5: P(S);
6: process_left++;
7: if (process_left==3) {
8: process_arrived = 0;
9: process_left = 0;
10: }
11: V(S);
}
Question 74
void barrier (void) {
1: P(S);
2: process_arrived++;
3. V(S);
4: while (process_arrived !=3);
5: P(S);
6: process_left++;
7: if (process_left==3) {
8: process_arrived = 0;
9: process_left = 0;
10: }
11: V(S);
}
Question 75
for (i=0; i<512; i++) {
for (j=0; j<512; j++) {
x += A[i][j];
}
}
for (i=0; i<512; i++) {
for (j=0; j<512; j++) {
x += A[j][i];
}
}
Question 76
for (i=0; i<512; i++) {
for (j=0; j<512; j++) {
x += A[i][j];
}
}
for (i=0; i<512; i++) {
for (j=0; j<512; j++) {
x += A[j][i];
}
}
Question 77
Question 78
Hosts | Port |
H1, H2, H3, H4 | 3 |
H5, H6, H9, H10 | 1 |
H7, H8, H11, H12 | 2 |
Hosts | Port |
H1, H2 | 4 |
H3, H4 | 3 |
H5, H6 | 1 |
H7, H8, H9, H10,H11,H12 | 2 |
Hosts | Port |
H3, H4 | 3 |
H5, H6, H9, H10 | 1 |
H1, H2 | 4 |
H7, H8, H11, H12 | 2 |
Hosts | Port |
H1, H2, H3, H4 | 3 |
H5, H7, H9, H10 | 1 |
H7, H8, H11, H12 | 4 |
Question 79
Which one of the following grammars generates the language L = {ai bj | i ≠ j}
[caption width="800"] [/caption]Question 80
In the correct grammar of above question, what is the length of the derivation (number of steps starring from S) to generate the string albm with l ≠ m?
There are 84 questions to complete.