- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
controlling Actor resource consumption
Fri, 2009-02-27, 10:26
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
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
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:
--
http://www.richdougherty.com/