Producer/Consumer Project

61 views
Skip to first unread message

cbra...@asu.edu

unread,
Mar 24, 2018, 2:42:58 AM3/24/18
to asu-cse-430
What exactly are we suppose to be displaying for the producer/consumer problem. I've got pretty much the logic down, at least from what I think. Do we just add arbitrary int's to the queue and display the queue every V or something? I set my buffer to 4, just kind of confused on the display part.

Partha Dasgupta

unread,
Mar 25, 2018, 6:10:43 PM3/25/18
to asu-c...@googlegroups.com
Yes, you can add arbirary ints, or add a number generted by a counter. Display is up to you to design -- but at a minimum, a producer prints its ID and a item number (or item ID) every time an item is added. Same for consumer. 


Partha Dasgupta,
ASU/CIDSE/Computer Science & Eng. 
EMail: par...@asu.edu
http://cactus.eas.asu.edu/partha

On Fri, Mar 23, 2018 at 11:42 PM, <cbra...@asu.edu> wrote:
What exactly are we suppose to be displaying for the producer/consumer problem. I've got pretty much the logic down, at least from what I think. Do we just add arbitrary int's to the queue and display the queue every V or something? I set my buffer to 4, just kind of confused on the display part.

--
You received this message because you are subscribed to the Google Groups "asu-cse-430" group.
To unsubscribe from this group and stop receiving emails from it, send an email to asu-cse-430+unsubscribe@googlegroups.com.
To post to this group, send email to asu-c...@googlegroups.com.
Visit this group at https://groups.google.com/group/asu-cse-430.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages