a solution in c for a wine making club problem?
Consider a wine-making club with 8 members and a warehouse of supplies. For a member to make wine, they need to use: 2 jugs, 1 yeast lock, sweetened fruit juice, and wine-making yeast. The initial mixing process requires a mixing station, the fermentation process requires 4 weeks to produce wine once all three ingredients have been properly mixed together. The second carboy is needed only at the end of the process to decant the wine off the dead yeast. The warehouse contains 2 mixing stations, 6 carboys (10 liter size), 7 yeast locks, 15 containers of (5 liter size) of sweetened fruit juice, and 20 packages of wine yeast (for 10 liters of wineeach). Once a member has finished his/her wine, they all taste the batch before that member starts a new batch. Write a program that simulates the members of the club making wine. Each member should be represented by a process. Use semaphores for synchronization. Use C or C++.It should free from deadlock and need not be free from starvation.
Tagged with: carboy • containers • deadlock • fermentation process • fruit juice • jugs • liter • liters • semaphores • starvation • wine yeast
Filed under: All Things Wine
Like this post? Subscribe to my RSS feed and get loads more!
Sounds like you want someone to do your C homework for you.