 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Andersen Guest
|
Posted: Fri Feb 11, 2005 5:43 pm Post subject: threads demystified |
|
|
How many threads can one application have at the same time in Java? Is
there a roof? Is it platform dependent, in that case, what is the number
for SUN's JVM on WIN32? Any info on this would help me.
What about green threads? they are out?
regards,
Andersen
|
|
| Back to top |
|
 |
Sachin Guest
|
|
| Back to top |
|
 |
Andersen Guest
|
Posted: Sun Feb 13, 2005 2:00 am Post subject: Re: threads demystified |
|
|
One question, are java threads mapped to OS threads, or are they all
running within one single OS thread?
regards,
Andersen
Sachin wrote:
|
|
| Back to top |
|
 |
Bill Tschumy Guest
|
Posted: Sun Feb 13, 2005 2:29 am Post subject: Re: threads demystified |
|
|
On Sat, 12 Feb 2005 20:00:57 -0600, Andersen wrote
(in article <420EB4D9.6000208 (AT) hotmail (DOT) com>):
| Quote: | One question, are java threads mapped to OS threads, or are they all
running within one single OS thread?
regards,
Andersen
Sachin wrote:
Hi Andersen,
Not sure if the following thread helps ...
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/
thread/ba0b73e49874fd3a/318178780f039744?q=Max+Java+Threads&_done=%2Fgroups%
3Fhl%3Den%26q%3DMax+Java+Threads%26qt_s%3DSearch+Groups%26&_doneTitle=Back+t
o+Search&&d#318178780f039744
-Sachin
|
It is up to the implementation to decide since it is not spelled out in the
specification. On most platforms (Mac OS X, Windows, Linux) they are mapped
to OS-level threads. Early in Java's history, on Solaris they were not. The
Solaris JVM used green threads to implement the Java threading model. Not
sure if they still do that or not.
--
Bill Tschumy
Otherwise -- Austin, TX
http://www.otherwise.com
|
|
| Back to top |
|
 |
Cindi Guest
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|