Concurrent paradigms - Paralelism approaches

595 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
595
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Concurrent paradigms - Paralelism approaches

  1. 1. Concurrent paradigms Presentation by Joel Correa – Software engineer
  2. 2. Single Threaded Application Thread Memory
  3. 3. Multi Threaded Application Threads Shared Memory
  4. 4. Race condition Threads Shared Memory Race condition!
  5. 5. # Locks Threads Shared Memory 1 1 ????
  6. 6. # Locks Threads Shared Memory 1 1
  7. 7. # Locks Threads Shared Memory 2 1 21 ???? ???? ????
  8. 8. # Locks Threads Shared Memory 2 1 21 ???? ???? ????
  9. 9. # Actors Actors MailBoxes Private mutable state
  10. 10. # Actors Actors MailBoxes Private mutable state Async/Non-blocking queues!
  11. 11. # Fork / Join Breaks an application into several parts for parallel processing and joins the results at the end.
  12. 12. # Fork / Join Breaks an application into several parts for parallel processing and joins the results at the end. Java 7 Framework
  13. 13. References: http://www.stanford.edu/class/cs94si/Concurrency.pdf http://tutorials.jenkov.com/java-concurrency/locks.html http://tutorials.jenkov.com/java-concurrency/race-conditions-and-critical-sections.html http://www.coopsoft.com/ar/ForkJoinArticle.html Thanks!

×