Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 254639
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T21:51:49+00:00 2026-05-11T21:51:49+00:00

I want to do a multi-agent simulation containing about 10.000 agents (machine and product

  • 0

I want to do a multi-agent simulation containing about 10.000 agents (machine and product agents) using the Scala Actor framework.

As I understand, if there are lots of actors passing messages around, can it run out of stack due the recursion?

If so, how can I increase the stack sizes for the underlying worker threads?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T21:51:49+00:00Added an answer on May 11, 2026 at 9:51 pm

    The actor framework has been designed to handle this – in fact, it can handle this with only one thread, assuming you use the loop-react pattern as follows:

    import actors._
    import actors.Actor._
    
    val a = actor {
      loop {
        react {
          case ABC => //Handle here
    
        }
      }
    }
    

    On pp 590-593 of Programming in Scala this is discussed in more detail: basically the react method never returns normally (it terminates with an exception) and therefore its call stack does not need to be preserved. You can think of it as looping forever.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to create a multi-agent simulation model for a real word manufacturing process
I want to implement multi language in my site using zend framework. I need
I'm architecturing a Multi Agent System (MAS) framework to describe Beliefs-Desires-Intents (BDI) agents in
I want to implement multi tenancy using Windsor and i don't know how to
I want to develop a multi-server clustered framework that will work similarly to the
I am still learning .NET framework and I want to implement multi-tier application just
I want do fit some sort of multi-variate time series model using R. Here
I want to create a multi file uploder using HTML5 and PHP5. I don't
I'm using a view that supports list inside another list. I want to multi-thread
I want to display multi-buttons alertview to user everyday twice a day. They can

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.