Do Scala and Erlang use green threads?

Posted by CHAPa on Stack Overflow See other posts from Stack Overflow or by CHAPa
Published on 2010-04-02T13:09:46Z Indexed on 2010/04/02 13:23 UTC
Read the original article Hit count: 398

I've been reading a lot about how Scala and Erlang does lightweight threads and their concurrency model (actors).

However, I have my doubts.

Do Scala and Erlang use an approach similar to the old thread model used by Java (green threads) ?

For example, suppose that there is a machine with 2 cores, so the Scala/Erlang environment will fork one thread per processor? The other threads will be scheduled by user-space (Scala VM / Erlang VM ) environment. Is this correct?

Under the hood, how does this really work?

© Stack Overflow or respective owner

Related posts about scala

Related posts about erlang