C program for producer consumer with producer @ infinte rate and consumer @ defined The program demonstrate the producer consumer problem using a queue of size(fixed) 32 where the producer fills the queue @ its own speed but the consumer consumes @ some delay. The producer needs to wait until the queue is less than max to produce and add it to queue. For better explanation see the result_a.txt In b.c semaphore is not used as a counting variable but an alternate approach is used to gain the same result.
-
Notifications
You must be signed in to change notification settings - Fork 1
abhineet-pandey/pthread_producer_consumer
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
C program for producer consumer with producer @ infinte rate and consumer @ defined
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published