Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Determining the JVM Threading Model used on Windows

Reply
Thread Tools

Determining the JVM Threading Model used on Windows

 
 
Kevin Erickson
Guest
Posts: n/a
 
      02-27-2007
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!

 
Reply With Quote
 
 
 
 
Chris Uppal
Guest
Posts: n/a
 
      02-27-2007
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


 
Reply With Quote
 
 
 
 
Mike Schilling
Guest
Posts: n/a
 
      02-27-2007
Chris Uppal wrote:
> 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.


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..


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Determining the Better Approach of Transaction in n-tier Application Model and where Transactions are maintained msnews.microsoft.com ASP .Net 2 03-29-2005 05:16 PM
mutliple CPUs, threading and JVM 1.4.2 David Java 0 11-03-2004 07:29 PM
MS JVM and Sun JVM problem Young-Jin Lee Java 3 01-21-2004 04:25 AM
Different behavior for newStringUTF() for Sun JVM and IBM Jvm Lasse Java 1 01-05-2004 07:49 PM
Re: Handling both MS JVM and Sun JVM Kevin Hooke Java 2 09-02-2003 05:31 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57