什么是JVM调度算法? [英] What is the JVM Scheduling algorithm?

查看:116
本文介绍了什么是JVM调度算法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我真的很好奇JVM如何使用线程!
在我在互联网上的搜索,我发现了一些关于RTSJ的材料,但我不知道这是否正确的方向我的答案。
我也在sun的论坛中发现了这个主题,
http://forums.sun.com/thread.jspa?forumID=513&threadID=472453
,但不够满意。

I am really curious about how does the JVM work with threads ! In my searches in internet, I found some material about RTSJ, but I don't know if it's the right directions for my answers. I also found this topic in sun's forums, http://forums.sun.com/thread.jspa?forumID=513&threadID=472453, but that's not satisfatory.

有人可以给我一些关于JVM调度算法的指导,材料,文章或建议吗?

Can someone give me some directions, material, articles or suggestion about the JVM scheduling algorithm ?

我也在寻找关于调度器中Java线程的默认配置的信息,像时间切片的情况下每个线程需要多长时间。

I am also looking for information about the default configurations of Java threads in the scheduler, like 'how long does it take for every thread' in case of time-slicing. And this stuff.

感谢任何帮助!

谢谢!

推荐答案

没有单个Java虚拟机; JVM是一个规范,它有多个实现,包括OpenJDK版本和它的Sun版本等。我不知道肯定,但我想,任何合理的JVM将简单地使用操作系统提供的底层线程机制,这将暗示POSIX线程(pthreads)在UNIX(Mac OS X,Linux等),并将暗示Windows上的WIN32线程。通常,这些系统默认使用循环策略。

There is no single Java Virtual Machine; JVM is a specification, and there are multiple implementations of it, including the OpenJDK version and the Sun version of it, among others. I don't know for certain, but I would guess that any reasonable JVM would simply use the underlying threading mechanism provided by the OS, which would imply POSIX Threads (pthreads) on UNIX (Mac OS X, Linux, etc.) and would imply WIN32 threads on Windows. Typically, those systems use a round-robin strategy by default.

这篇关于什么是JVM调度算法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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