• Post Reply Bookmark Topic Watch Topic
  • New Topic

Producer Consumer design query  RSS feed

 
Abhay Agarwal
Ranch Hand
Posts: 1376
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can we map Producer Consumer code (practice/technique) back to any Design pattern ?

 
Campbell Ritchie
Marshal
Posts: 56546
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The producer-consumer scenario is a problem which needs solving. That is different from a design pattern, or even an anti‑pattern, so I am not sure there is an answer to your question.
 
Abhay Agarwal
Ranch Hand
Posts: 1376
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for the reply.
I understood your answer.
So Design pattern is a solution to the problem in context.
Producer-Consumer scenario is a problem. And any suitable and relevant design pattern can help us in solving or implementing this scenario.

~ abhay
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!