File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Scala concurrent programming
 
Similar Threads
Only about Concurrency?
Required knowledge to read "Programming Scala"
What can scala do for multithreading that can't be done in Java
Are there other popular paradigms besides actor concurrency?
Why Scala?