This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 1621
    
  13

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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Scala concurrent programming
 
Similar Threads
Only about Concurrency?
Are there other popular paradigms besides actor concurrency?
Required knowledge to read "Programming Scala"
Why Scala?
What can scala do for multithreading that can't be done in Java