Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Please provide me the program of Bounded-Buffer problem

 
E Lan
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a study assignment about producer and consumer problem.
But I can't find this code .
Hope someone can help me.
Thank a lot.
 
Henry Wong
author
Marshal
Pie
Posts: 21504
84
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by E Lan:
I have a study assignment about producer and consumer problem.
But I can't find this code .
Hope someone can help me.
Thank a lot.


There is nothing in the JDK that is specific to producer and consumers... but the threading and collection classes are generally used to implement producer / consumer designs.

Henry
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at the JavaDoc for JDK 1.5 BlockingQueue. There is some neat stuff in there that may apply nicely. If you are supposed to write your own it will give you some food for thought at least.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic