From a8a7a85d652a5a97f4f050ca809bfc9f495bd8a0 Mon Sep 17 00:00:00 2001 From: Ziad Arafat Date: Thu, 14 Oct 2021 12:14:51 -0600 Subject: [PATCH] adjusted comments --- Program2/witharray_shm/witharray_shm.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Program2/witharray_shm/witharray_shm.c b/Program2/witharray_shm/witharray_shm.c index 75dde4d..c38f26e 100644 --- a/Program2/witharray_shm/witharray_shm.c +++ b/Program2/witharray_shm/witharray_shm.c @@ -7,9 +7,11 @@ * with random numbers between 1 and 3 inclusive. It will then try to count * the number of threes in the array using a serial method and a parallel method * it will return the counts for each attempt as well as the running times. + * We will also do the same thing as the threads but with process forks. * - * This version will use a single variable shared by all the threads without - * uring a mutex. We expect it to return incorrect results + * This version will use a shared memory array with an element for each thread + * to update it's result. Once all threads are done we will combine all the + * elements into a final result. Same applies to the processes. * */