updated for 2023

This commit is contained in:
Ziad Arafat committed 2023-09-11 12:44:01 -06:00
1 parent 80b4b45c8f
commit b4d3a998a8
2 files changed
+2 -7

No files matched your search

+1 -1
View File
@@ -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 <sys/types.h>
+1 -6
View File
@@ -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
*
*/
/**