Skip to content

GohanDGeo/prod-cons-modified

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

prod-cons.c modified

Made during the Embedded and Real-Time Systems course, ECE AUTH, 2022.

A modified version of the prod-cons.c program, which calculates the average waiting time for each item, from the moment it is put in the queue, until the moment it exits it, using P producer threads, and Q consumer threads.

Run using:

gcc -o out prod-cons.c -lm -lpthread
./out

About

Modified version of the prod-cons.c program.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages