Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Can we benefit from the hyperthreading technology in a VM?  RSS feed

 
Olivier Beghain
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have a computer based on a Intel Pentium 4 CPU supporting the hyper-threading technology.

Is there a way to benefit from this technology (same question if I would have a computer with 2 CPUs) within a Java VM and by extension from Java apps running in the VM?

In other words, do any Java VM (Sun, etc) implementation suport the usage of more than 1 CPU and offer real multi-threading?

Thx a lot.
Regards,
-Olivier.
 
Henry Wong
author
Sheriff
Posts: 22867
119
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
With the exception of some really old JVMs, most JVMs uses the underlying threading model of the Operating System.

To answer your question... yes.

Henry
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!