mirror of
https://github.com/RustyRaptor/parallel-programming.git
synced 2026-12-03 15:55:15 -07:00
updated for 2023
This commit is contained in:
1 parent
80b4b45c8f
commit
b4d3a998a8
2 files changed
+2
-7
No files matched your search
@@ -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>
|
||||
|
||||
@@ -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
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user