This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Actors, multiple cores and Android

1 reply
Nolan Darilek
Joined: 2009-10-11,
User offline. Last seen 42 years 45 weeks ago.

I'm about to start using Scala in a project which could benefit from
parallel processing, so naturally actors would seem like a great fit.
There are some things about them that confuse me, though.

First, use of multiple cores is one benefit often stressed when working
with actors. Do I need to do anything differently in my code to do this,
or does use of actors dynamically and automatically scale across CPUs?
Are there any styles of actor use that lend themselves better to
parallel processing? I'm guessing that splitting a task into smaller,
well-defined jobs is good, as each actor could then be assigned its own
resources across multiple cores.

Second, do all actor implementations scale based on number of cores? I
like Lift's actors for their simplicity, so would rather use those than
the default library.

Finally, do actors and parallel collections play well with the new
multi-core Android phones? I would imagine that there's no difference
between scaling across cores on a PC vs. doing the same on an Android
device, but I've certainly been bitten by unexpected differences before.

Thanks.

David Brown
Joined: 2009-04-26,
User offline. Last seen 42 years 45 weeks ago.
Re: Actors, multiple cores and Android

On Sun, May 22 2011, Nolan Darilek wrote:

> Finally, do actors and parallel collections play well with the new
> multi-core Android phones? I would imagine that there's no difference
> between scaling across cores on a PC vs. doing the same on an Android
> device, but I've certainly been bitten by unexpected differences
> before.

Possibly, once Honeycome is out:
http://www.anandtech.com/Show/Index/4189?cPage=3&all=False&sort=0&page=2...

Hard to say how real performance will be until then.

David

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland