wood burning stoves 2.0*
The moose likes Scala and the fly likes Scala concurrent programming Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Languages » Scala
Bookmark "Scala concurrent programming" Watch "Scala concurrent programming" New topic
Author

Scala concurrent programming

Rob Ivan
Greenhorn

Joined: Jan 07, 2010
Posts: 28

Hi, Nilanjan Raychaudhuri.

I attended DevNexus last week, and a number of the presentations that talked to concurrent (i.e., thread safe) programming used Scala for their code demos and slides. Can you provide a high-level summary of the Scala language features that simplify concurrent programming over conventional Java?

Thank you.
chris webster
Bartender

Joined: Mar 01, 2009
Posts: 1726
    
  14

Before Nilanjan replies with a more expert view, here's a couple of starting points. Scala uses an "Actor"-based approach to concurrency, which provides a higher level of abstraction than threads and spares you all the details of locking, synchronisation etc. The Akka library provides an event-driven framework for concurrency based on Actors, and is available for both Scala and Java. Combining this with a more functional approach to programming is seen as a way to implement robust and maintainable concurrent functionality more easily.


No more Blub for me, thank you, Vicar.
Rob Ivan
Greenhorn

Joined: Jan 07, 2010
Posts: 28

Thank you, Chris.
 
GeeCON Prague 2014
 
subject: Scala concurrent programming