What advantages does Scala have over Java for concurrent programming?

前端 未结 3 1077
一整个雨季
一整个雨季 2021-02-04 08:03

How can scala make writing multi-threaded programs easier than in java? What can scala do (that java can\'t) to facilitate taking advantage of multiple processors?

3条回答
  •  北恋
    北恋 (楼主)
    2021-02-04 08:20

    If one takes Akka as a foundation for concurrent (and distributed) computing, one might argue the only difference is the usual stuff that distinguishes Scala from Java, since Akka has both Java and Scala bindings for all its facilities.

提交回复
热议问题