Skip to content

JMANN240/OSBonus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Producer and Consumer implementation in C++

This repository stores a C++ implementation of the producer consumer problem using semaphores and IPC with shared memory. There is no output, but the files run as expected. The code is commented to be easily readable. The files can be compiled as follows:

gcc producer.cpp -pthread -lrt -o producer
gcc consumer.cpp -pthread -lrt -o consumer

The compiled binaries can be run with the line:

./producer & ./consumer &

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages