actor系统默认分配多少个线程?

时间:2019-05-24 14:21:59

标签: scala akka

创建演员系统时

val simpleActorySystem = ActorSystem("SimpleActorSystem")

我们能否确定默认情况下为SimpleActorSystem分配了多少个线程?

1 个答案:

答案 0 :(得分:2)

来自default dispatcher documentation

# Min number of threads to cap factor-based parallelism number to
parallelism-min = 2

# Parallelism (threads) ... ceil(available processors * factor)
parallelism-factor = 2.0

# Max number of threads to cap factor-based parallelism number to
parallelism-max = 10