• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Producer consumerproblem
 

Producer consumerproblem

on

  • 337 views

 

Statistics

Views

Total Views
337
Views on SlideShare
334
Embed Views
3

Actions

Likes
1
Downloads
2
Comments
0

2 Embeds 3

http://www.linkedin.com 2
https://www.linkedin.com 1

Accessibility

Upload Details

Uploaded via as OpenOffice

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Producer consumerproblem Producer consumerproblem Presentation Transcript

    • (EN)Lightning!!! talk on Handling Producer – Consumer use cases in Java - Prasanna Twitter @prasonscalae-mail prassee.sathian at gmail dot com
    • What is Producer Consumer use case ??
    • How we handle it .....Threads Dedicate separate thread for producer & consumer Handle syncn Result in a code tedious to extend A traditional approach Producer Consumer <<Runnable>> <<Runnable>>
    • Queue A data structure Make use of existing classes in JDK Let the producer and consumer class rely on the queue (Broker) Queue Producer Consumer <<Runnable>> <<Runnable>>
    • Code Example !!!!
    • Small Sales Pitch Created a project implementing queue onhttps://github.com/prassee/concProdCons
    • Questions
    • Thank you