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

controlling Actor resource consumption

1 reply
Carsten Saager
Joined: 2008-12-19,
User offline. Last seen 42 years 45 weeks ago.
Hi,

I try to give Actors a new spin. My core problem is that I have different Actors where one class needs to be monitored, e.g I want to control how many parallel executions are permitted for this class. The point is that this Actor uses a limited resource and I want my application to auto-tune to the optimal degree of parallelism. Currently I use bounded thread pools for that - is there something in the Actor library that gives me easy control of that

-Carsten
Rich Dougherty
Joined: 2008-08-20,
User offline. Last seen 2 years 38 weeks ago.
Re: controlling Actor resource consumption
Hi Carsten

You could look at the Scheduler classes inside the scala.actors package. I'm pretty sure the default implementation uses a thread pool to manage the number of actors that are running at any time.

Rich

On Fri, Feb 27, 2009 at 10:25 PM, Carsten Saager <csaager@gmail.com> wrote:
Hi,

I try to give Actors a new spin. My core problem is that I have different Actors where one class needs to be monitored, e.g I want to control how many parallel executions are permitted for this class. The point is that this Actor uses a limited resource and I want my application to auto-tune to the optimal degree of parallelism. Currently I use bounded thread pools for that - is there something in the Actor library that gives me easy control of that

-Carsten

--
http://www.richdougherty.com/

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