java对cpu线程的要求_java-CPU份额对线程有什么影响

我的问题更多地在Java线程方面.但是对于OS级别的线程,它可能也更通用.

JAVA特定:ThreadPool Tuning Size的意义是什么(公式)?带有容器的冲击性能及其在发动机罩下的行为. (我想我可以理解cpu集,但不能理解cpu份额,我知道什么是cpu份额,只是不了解线程在这里的行为).

因此,我读了一篇有关java in containers(在CloudFoundary上运行应用程序时观察到的),3和enhancements的文章,这些文章已引入JDK 10中以检测容器限制.

在上述文章中:

Let’s take a short look at how the JVM adjust to the number of processors/cores available on the node it is running on. There are actually a number of parameters which by default are initialized based on core count.

So if the normal default values for GC-threads, JIT Threads etc are the total number of ‘cores’ available.

现在,如果

the number_of_cpus() will be calculated based on cpu_shares()/1024

然后,在假设CPU份额为512的情况下,此计算将得出0.(然后,我假定该值将舍入为1 ??).

那如何运作呢?

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值