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 664035
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T23:33:19+00:00 2026-05-13T23:33:19+00:00

What makes actors so lightweight? I’m not even sure how they work. Aren’t they

  • 0

What makes actors so lightweight?

I’m not even sure how they work. Aren’t they separate 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-13T23:33:20+00:00Added an answer on May 13, 2026 at 11:33 pm

    When they say lightweight they mean that each actor is not mapped to a single thread.

    JVM offers shared memory threads with
    locks as the primary form of
    concurrency abstractions. But shared
    memory threads are quite heavyweight
    and incur severe performance penalties
    from context switching overheads. For
    an actor implementation based on a
    one-to-one mapping with JVM threads,
    the process payload per Scala actor
    will not be as lightweight that we can
    spawn a million instances of an actor
    for a specific computation. Hence
    Scala actors have been designed as
    lightweight event objects, which get
    scheduled and executed on an
    underlying worker thread pool that
    gets automatically resized when all
    threads block on long running
    operations. In fact, Scala implements
    a unified model of actors – thread
    based and event based. Scala actors
    offer two form of suspension
    mechanisms – a full stack frame
    suspension(implemented as receive) and
    a suspension based on a continuation
    closure (implemented as react). In
    case of event based actors, a wait on
    react is represented by a continuation
    closure, i.e. a closure that captures
    the rest of the actor’s computation.
    When the suspended actor receives a
    message that matches one of the
    patterns specified in the actor, the
    continuation is executed by scheduling
    the task to one of the worker threads
    from the underlying thread pool. The
    paper “Actors that Unify Threads and
    Events” by Haller and Odersky
    discusses the details of the
    implementation.

    Source

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

Sidebar

Related Questions

By concurrency I mean lightweight processes like Erlang's actors and concurrent GC aimed to
VC++ makes functions which are implemented within the class declaration inline functions. If I
What makes a language a scripting language? I've heard some people say "when it
Grails makes it very easy to configure datasources for different environments (development, test, production)
What Makes a Good Unit Test? says that a test should test only one
XAMPP makes configuring a local LAMP stack for windows a breeze. So it's quite
What makes Python stand out for use in web development? What are some examples
It makes sense that something like an operating system would be written in C.
Intel makes microprocessor, so he could define the instruction format and its corresponse assembly
It makes sense to pass a filter object to the repository so it 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.