Skip to content

frhd143/Producer-Consumer-Problem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Producer-Consumer using Shared Memory and Semaphores

This is a simple C program that implements the Producer-Consumer problem using shared memory and semaphores.

Overview

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.

Contributing

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: [email protected]

License

This code is released under the MIT License.