stub C gonna fork for easier w https://stackoverflow.com/questions/28242722/fork-and-wait-calls, https://stackoverflow.com/questions/30476853/how-to-make-a-fifo-in-c
parent
221b2c8096
commit
817d9de563
|
|
@ -0,0 +1,29 @@
|
|||
#import <stdio.h>
|
||||
|
||||
int scatter(int, int);
|
||||
int gather(int, int);
|
||||
|
||||
int main() {
|
||||
int N = 100;
|
||||
int P = 3;
|
||||
|
||||
if (scatter(N, P)) {
|
||||
printf("failed to scatter\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (gather(N, P)) {
|
||||
printf("failed to gather\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int scatter(int N, int P) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
int gather(int N, int P) {
|
||||
return 1;
|
||||
}
|
||||
Loading…
Reference in New Issue