From b4d3a998a82fe7913bc53f38164ec5d52bc9b323 Mon Sep 17 00:00:00 2001 From: Ziad Arafat Date: Mon, 11 Sep 2023 12:44:01 -0600 Subject: [PATCH] updated for 2023 --- Program1_5/README.md | 2 +- Program1_5/sharedmem.c | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/Program1_5/README.md b/Program1_5/README.md index 5aee20b..5259482 100644 --- a/Program1_5/README.md +++ b/Program1_5/README.md @@ -1,6 +1,6 @@ # Program 1.5 -This is a program to see if forked processes will respect a shared memory semaphore. +This is a program to see if forked processes will respect a shared memory semaphore. The results and explanation is in the header comments. ```c #include diff --git a/Program1_5/sharedmem.c b/Program1_5/sharedmem.c index 9d54571..352d00e 100644 --- a/Program1_5/sharedmem.c +++ b/Program1_5/sharedmem.c @@ -12,18 +12,13 @@ /** * Changelog: - * Sep 25 2021 + * Sep 11 2023 * Used my old OS class code to create and manage shared memory * Added another part of my old OS class code to create an IPC semaphore * - * Sep 26 2021 * BUGFIX: Semaphore was not being respected by both processes because the * sem_init() call was not enabling shared memory semaphore by setting the * second parameter to 1. - * - * Sep 27 2021 - * Cleaned up and documented code - * */ /**