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 2006

Tip: Looking for answers? Try searching our database.

Java  threads / JVM and CPUs

Thread view: 
James - 16 Feb 2006 18:12 GMT
Hi, i was doing some research and was wondering if anyone had any idea
about the following:

How many active Java threads per CPU can Windows XP support?
Does it make a difference on single / dual processor boxes?

Thanks.
Oliver Wong - 16 Feb 2006 18:44 GMT
> Hi, i was doing some research and was wondering if anyone had any idea
> about the following:
>
> How many active Java threads per CPU can Windows XP support?
> Does it make a difference on single / dual processor boxes?

   One thread per core (regardless of whether the thread is a "Java thread"
or not). The other threads won't be "active". A single CPU can have multiple
cores. A core can also be "hyperhtreaded", but it's unclear as to whether
that counts as "multiple active threads", or "one thread at a time, but
really fast context switching".

   - Oliver
Dimitri Maziuk - 16 Feb 2006 20:59 GMT
Oliver Wong sez:

>> Hi, i was doing some research and was wondering if anyone had any idea
>> about the following:
[quoted text clipped - 7 lines]
> that counts as "multiple active threads", or "one thread at a time, but
> really fast context switching".

Assuming "active" means "fully independent CPU-bound", of course.
(E.g. you can expect an active I/O-bound thread to spend most of its
time waiting for I/O, while CPU is available to run another thread
-- unless it's polling in a tight loop... etfc.)

Dima
Signature

  Double d = new Double(2.0);
  d = new Double(d.doubleValue() * d.doubleValue());
I regard Double variables as mutable, considering this one started as 2.0 and
ended up as 4.0.                                             -- Brendan Guild

Roedy Green - 17 Feb 2006 05:10 GMT
>How many active Java threads per CPU can Windows XP support?
>Does it make a difference on single / dual processor boxes?

the theoretical limit is RAM. Each thread eats up about 1 MB of
virtual RAM.
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

Roedy Green - 17 Feb 2006 05:11 GMT
>How many active Java threads per CPU can Windows XP support?
>Does it make a difference on single / dual processor boxes?

What are threads doing?  if sleep( 1000 ) you should have no trouble
filling RAM with them.
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.



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.