mirror of
https://github.com/RustyRaptor/parallel-programming.git
synced 2026-12-03 15:55:15 -07:00
resolved merge conflicts
This commit is contained in:
1 parent
7577935377
commit
bec51a6164
1 file changed
-10
@@ -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--;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user