Weitere ähnliche Inhalte
Ähnlich wie Parallel computing with GPars (20)
Kürzlich hochgeladen (20)
Parallel computing with GPars
- 5. Groovy Parallel Systems
High level abstractions for writing concurrent code!
● Code-level Helpers
○ Parallel Collections
○ Asynchronous Processing
○ Fork/Join - Map/Reduce
● Architecture-level Concepts
○ Dataflows
○ Actors
● Protecting Shared Mutable State
○ Agents
- 6. Groovy Parallel Systems
High level abstractions for writing concurrent code!
● Code-level Helpers
○ Parallel Collections
○ Asynchronous Processing
○ Fork/Join - Map/Reduce
● Architecture-level Concepts
○ Dataflows
○ Actors (For next time...)
● Protecting Shared Mutable State
○ Agents (For next time...)
- 13. DEMO 2
"Dado un rango obtener la cantidad de
nr. primos agrupados por él ultimo digito"
- 16. Collections
● eachParallel()
● eachWithIndexParallel()
● collectParallel()
● findAllParallel()
● findAnyParallel
● findParallel()
● everyParallel()
● anyParallel()
● grepParallel()
● groupByParallel()
● foldParallel()
● minParallel()
● maxParallel()
● sumParallel()
● splitParallel()
● countParallel()
● foldParallel()
- 22. + Info
● http://gpars.org/0.12/guide/guide/single.html
● http://www.slideshare.net/paulk_asert/concurrency-with-
gpars
● http://gee.cs.oswego.edu/dl/papers/fj.pdf
● http://static.googleusercontent.
com/external_content/untrusted_dlcp/labs.google.
com/en/us/papers/mapreduce-osdi04.pdf
● Java Concurrency in Practice (ISBN-0321349601)
Pics Credits
● Stone age: http://tinyurl.com/bvnlv74
● Steam train: http://tinyurl.com/6lp3krq
● Speed train: http://tinyurl.com/7jjc3v5
● CPU: http://www.flickr.com/photos/olivander/149865626/