创建演员系统时
val simpleActorySystem = ActorSystem("SimpleActorSystem")
我们能否确定默认情况下为SimpleActorSystem
分配了多少个线程?
答案 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