From bec51a616458ad755d40a2dbb4f743f56603516b Mon Sep 17 00:00:00 2001 From: Ziad Arafat Date: Thu, 14 Oct 2021 12:02:41 -0600 Subject: [PATCH] resolved merge conflicts --- Program2/figure1_7/figure1_7.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/Program2/figure1_7/figure1_7.c b/Program2/figure1_7/figure1_7.c index 9162b94..d999e6b 100644 --- a/Program2/figure1_7/figure1_7.c +++ b/Program2/figure1_7/figure1_7.c @@ -1,11 +1,6 @@ // Ziad Arafat -<<<<<<< HEAD // Created: Oct 1 2021 // Figure 1.7 in the textbook with added process forking test and shared memory -======= -// Created: Aug 31 2021 -// Figure 1.7 in the textbook but with processes too. ->>>>>>> bf9e0ec509de4eee10e27dd344d6c19e20d7eceb /** * @brief This program will create an array of a specified size and fill it @@ -248,14 +243,9 @@ int count3s_parallel_proc() while (childcnt > 0) { int pid = wait(NULL); -<<<<<<< HEAD if (DEBUG) { printf("Process 1 PID %d finished\n", pid); } -======= - if (DEBUG) - printf("Process 1 PID %d finished\n", pid); ->>>>>>> bf9e0ec509de4eee10e27dd344d6c19e20d7eceb childcnt--; }