JVM中的最大线程数 [英] maximum threads in a JVM

查看:126
本文介绍了JVM中的最大线程数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

每个JVM我们可以拥有多少个最大线程?

how many maximum threads we can have per JVM?

谢谢

Satish

推荐答案

我相信它是可变的(取决于内存设置等),但是如果您有问题的计算机可以测试,您可以对其进行测试.

此外,JVM规范中未定义最大线程数,分配的优先级和中断顺序.这是由于根据硬件和底层OS的实现在实现上的细微差异.举一个简单的例子,在同一Windows版本下在同一JVM上运行的同一代码将处理中断,并根据所使用的CPU不同地分配线程优先级.
I believe it is variable (depends on memory settings and such), but if you have the computer in question to test on, you can test it out.

Additionally, the maximum number of threads, priority assigned and order of interrupts are undefined within the JVM specification. This is due to slight differences in implementation depending on the hardware and underlying OS. As a simple example, the same code running on the same JVM under the same version of Windows will handle interrupts and assign thread priority differently depending on the CPU being used.


这篇关于JVM中的最大线程数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆