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 / November 2005

Tip: Looking for answers? Try searching our database.

JVM on multiple CPUs

Thread view: 
davidkad - 13 Nov 2005 20:44 GMT
My application is multi-threaded and runs on a single JVM.
1) On a multi-CPU machine, will the JVM automatically take advantage of
the multiple CPUs and run the threads across the multiple CPUs?
2) Do I have to use native threads?
3) Is there a difference betweeb Windows and UNIX (Solaris, HPUX)

thanks

David
Benji - 13 Nov 2005 20:56 GMT
> My application is multi-threaded and runs on a single JVM.
> 1) On a multi-CPU machine, will the JVM automatically take advantage of
> the multiple CPUs and run the threads across the multiple CPUs?
> 2) Do I have to use native threads?
> 3) Is there a difference betweeb Windows and UNIX (Solaris, HPUX)

1) This is dependant on the actual VM implementation.  For most platforms
(windows, linux, Solaris), it will be a native thread implementation.

2) I'm not sure I understand the question...the thread implementation is
dependant on the VM.  Some VMs will let you specified whether you're using
native threads (that can use different CPUs) or green threads (which are
implemented virtually inside of the VM, and cannot run on multiple CPUs)

3) You'd have to check the documentation for the exact version of the VM
and exact version of OS.  But in most cases, it will use native threads.

Signature

Of making better designs there is no end,
 and much refactoring wearies the body.



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



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