This is a simple C program that implements the Producer-Consumer problem using shared memory and semaphores.
The program creates two semaphores, one for the producer and one for the consumer. The producer writes to the shared memory buffer and signals the consumer using the first semaphore. The consumer reads from the shared memory buffer and signals the producer using the second semaphore.
Contributions to this project are welcome. If you find a bug or want to suggest an improvement, please open an issue or submit a pull request. Or email me here: f.asadi2002@gmail.com
This code is released under the MIT License.