How many threads can a Java VM support?

前端 未结 12 1121
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-22 06:32

How many threads can a Java VM support? Does this vary by vendor? by operating system? other factors?

12条回答
  •  隐瞒了意图╮
    2020-11-22 07:18

    I recall hearing a Clojure talk where he got to run one of his apps on some specialized machine at a trade show with thousands of cores (9000?), and it loaded them all. Unfortunately, I can't find the link right now (help?).

    Based on that, I think it's safe to say that the hardware and your code are the limiting factors, not the JVM.

提交回复
热议问题