Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在Java中什么是线程调度? #1

Closed
butalso opened this issue Aug 13, 2018 · 1 comment
Closed

在Java中什么是线程调度? #1

butalso opened this issue Aug 13, 2018 · 1 comment

Comments

@butalso
Copy link

butalso commented Aug 13, 2018

你的:
JVM调度的模式有两种:分时调度和抢占式调度。 分时调度是所有线程轮流获得CPU使用权,并平均分配每个线程占用CPU的时间; 抢占式调度是根据线程的优先级别来获取CPU的使用权。 JVM的线程调度模式采用了抢占式模式。既然是抢占调度,那么我们就能通过设置优先级来“有限”的控制线程的运行顺序,注意“有限”一次。

深入理解java虚拟机里写道:jvm调度方式包括协同式和抢占式,你的分时调度,不就是抢占式的实现方法吗?

@Homiss
Copy link
Owner

Homiss commented Aug 14, 2018

嗯嗯,谢谢指出错误。

@Homiss Homiss closed this as completed Aug 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants