g**y 发帖数: 983 | 1 【 以下文字转载自 Programming 讨论区,原文如下 】
发信人: grey (东北汉), 信区: Programming
标 题: 现在还有什么OS不是THREAD级调度的吗?
发信站: The unknown SPACE (Tue Feb 4 14:37:22 2003) WWW-POST
准备用JAVA编应用于MULTIPLE CPU SERVER的应用程序
多THREAD就足够了吧 |
m******t 发帖数: 2416 | 2
Why does it matter? If you pragram in Java, you'd be programming against
the threading interface in Java, which is supposed to simulate threads
even if the underlying OS doesn't support it.
【在 g**y 的大作中提到】 : 【 以下文字转载自 Programming 讨论区,原文如下 】 : 发信人: grey (东北汉), 信区: Programming : 标 题: 现在还有什么OS不是THREAD级调度的吗? : 发信站: The unknown SPACE (Tue Feb 4 14:37:22 2003) WWW-POST : 准备用JAVA编应用于MULTIPLE CPU SERVER的应用程序 : 多THREAD就足够了吧
|
g**y 发帖数: 983 | 3 那样不能完全利用多CPU
【在 m******t 的大作中提到】 : : Why does it matter? If you pragram in Java, you'd be programming against : the threading interface in Java, which is supposed to simulate threads : even if the underlying OS doesn't support it.
|
g*****g 发帖数: 34805 | 4 Then it's not your fault, or you have to write your own JVM.
【在 g**y 的大作中提到】 : 那样不能完全利用多CPU
|
g**y 发帖数: 983 | 5 呵呵
所以我就是想知道是不是所有UNIX OS都支持,
WINDOWS是否是真的THREAD调度的我倒不在乎
不然我就得做成多进程的来保证利用多CPU了
against
【在 g*****g 的大作中提到】 : Then it's not your fault, or you have to write your own JVM.
|
m******t 发帖数: 2416 | 6
Either I misunderstood you, or you are saying multi-thread doesn't
utilize multi processor, which doesn't sound right to me.
【在 g**y 的大作中提到】 : 呵呵 : 所以我就是想知道是不是所有UNIX OS都支持, : WINDOWS是否是真的THREAD调度的我倒不在乎 : 不然我就得做成多进程的来保证利用多CPU了 : : against
|
g**y 发帖数: 983 | 7
Yes
这依赖于操作系统和JVM的支持程度
【在 m******t 的大作中提到】 : : Either I misunderstood you, or you are saying multi-thread doesn't : utilize multi processor, which doesn't sound right to me.
|
R*********t 发帖数: 217 | 8 if you have a multi-processors machine, of course you will download
a JVM whose multi-threading support utilizes underneath multi-processors,
otherwise, what is the point of multi-threading?
【在 g**y 的大作中提到】 : : Yes : 这依赖于操作系统和JVM的支持程度
|