File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Scala concurrent programming

Rob Ivan

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

Joined: Mar 01, 2009
Posts: 2289

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

Joined: Jan 07, 2010
Posts: 28

Thank you, Chris.
I agree. Here's the link:
subject: Scala concurrent programming
jQuery in Action, 3rd edition