Move problem 1-2 (join) into project 2 as the "wait" system call.
[pintos-anon] / grading / userprog / exec-multiple.c
index e2f8506e64cbd8c8422998665c6b03b104281649..a690dad54475e438ea034988960c0826696020ee 100644 (file)
@@ -5,10 +5,10 @@ int
 main (void) 
 {
   printf ("(exec-multiple) begin\n");
-  join (exec ("child-simple"));
-  join (exec ("child-simple"));
-  join (exec ("child-simple"));
-  join (exec ("child-simple"));
+  wait (exec ("child-simple"));
+  wait (exec ("child-simple"));
+  wait (exec ("child-simple"));
+  wait (exec ("child-simple"));
   printf ("(exec-multiple) end\n");
   return 0;
 }