Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / February 2007

Tip: Looking for answers? Try searching our database.

Determining the JVM Threading Model used on Windows

Thread view: 
Kevin  Erickson - 27 Feb 2007 17:50 GMT
Hello,

Is there a way to determine the JVM Threading Model used on Windows?
Any assistance in determining this would be of great benefit.

Thanks!
Chris Uppal - 27 Feb 2007 18:38 GMT
Kevin Erickson wrote:

> Is there a way to determine the JVM Threading Model used on Windows?

I believe that all Sun JVMs for Windows (since at least JDK 1.3) have used a
1-to-1 model, i.e. 1 OS-thread for each Java thread.

Other vendors' JVMs will probably be different (I'm pretty sure the BEA
"JRockit" JVM has green threads even on Windows).

I don't know of any defined way to find out how Java threads are mapped to OS
threads from Java code.  I suspect that it would come down to checking system
properties like java.vendor, and then looking for vendor-specific properties.

   -- chris
Mike Schilling - 27 Feb 2007 23:44 GMT
> Kevin Erickson wrote:
>
[quoted text clipped - 10 lines]
> down to checking system properties like java.vendor, and then looking
> for vendor-specific properties.

As a gross estimate, at least, you can run Java programs that create various
numbers of threads and use the task manager to see how many OS threads were
created..


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.