aspose file tools*
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 Java 8 in Action this week in the Java 8 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: 1479
    
  11

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.
 
 
subject: Scala concurrent programming
 
Similar Threads
Required knowledge to read "Programming Scala"
What can scala do for multithreading that can't be done in Java
Only about Concurrency?
Are there other popular paradigms besides actor concurrency?
Why Scala?