diff options
author | Matt Strapp <strap012@umn.edu> | 2020-10-04 11:11:58 -0500 |
---|---|---|
committer | Matt Strapp <strap012@umn.edu> | 2020-10-04 11:11:58 -0500 |
commit | df53f899e108495e824c5a520f1ccd78a494cb8b (patch) | |
tree | eb45308eda23d075398ffbc944fa7a784a84e92d | |
parent | Merge branch 'master' of github.umn.edu:STRAP012/csci4061Projects (diff) | |
download | csci4061-df53f899e108495e824c5a520f1ccd78a494cb8b.tar csci4061-df53f899e108495e824c5a520f1ccd78a494cb8b.tar.gz csci4061-df53f899e108495e824c5a520f1ccd78a494cb8b.tar.bz2 csci4061-df53f899e108495e824c5a520f1ccd78a494cb8b.tar.lz csci4061-df53f899e108495e824c5a520f1ccd78a494cb8b.tar.xz csci4061-df53f899e108495e824c5a520f1ccd78a494cb8b.tar.zst csci4061-df53f899e108495e824c5a520f1ccd78a494cb8b.zip |
Add 1 to each wait to for the shuffle and the chonk
-rw-r--r-- | P1/src/mapreduce.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/P1/src/mapreduce.c b/P1/src/mapreduce.c index 807c1af..1f0b2bb 100644 --- a/P1/src/mapreduce.c +++ b/P1/src/mapreduce.c @@ -37,7 +37,7 @@ int main(int argc, char *argv[]) { } } - for (int i = 0; i < nMappers; i++) { + for (int i = 0; i <= nMappers; i++) { //Hopefully this works wait(NULL); } @@ -67,7 +67,7 @@ int main(int argc, char *argv[]) { } } - for (int i = 0; i < nReducers; i++) { + for (int i = 0; i <= nReducers; i++) { //Maybe this works too? wait(NULL); } |