Skip to content
blahblahblah552Public

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

15 Commits

Folders and files

Repository files navigation

#Problem 1: Producer-Consumer Problem

This program addresses the Producer-Consumer Problem with a set of p producers and c consumers, each running as a single thread. These threads are synchronized via a shared buffer of size b (i.e., it can accommodate b items).

##Instalation
Use the following script to run the makefile where it will make all and run the program outputing on the terminal and adding files for each instance at the end it will show all the times that were placed in time.txt
To clean directory use 
```bash
make clean
```
This does use c++20 if error occurs during make might need to update it

```bash
./run.sh
```
You may also directly exicute the programe arguements are # of producers, # of consumers, buffer size
If no arguments or more than 3 it will default to 2 2 3
```bash
producer-Consumer p c b
```

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages