"Wilson. P" wrote:
> Hi all
>
> I heard that JDK1.2 would be making use of some native threads of Sun
> solaris. Is it so, If so, application developed in Sun Solaris needs
> some changes in order to deploy in other OS.
>
It's not just Solaris. Native thread support is also available, for
example, in the Linux port of JDK 1.2 that Blackdown is creating. This
was also the case in many JDK 1.1.x implementations -- both native
threads and green threads are supported.
>
> It can be a rumour also,But,I don't know...
>
In a Java app that does not contain any JNI calls, there should be *no*
changes required in the app code itself to switch between native threads
and green threads (or any other undelrying thread model, for that
matter). It is up to the JVM to provide an environment that supports
the thread semantics required by the Java API. As long as this happens,
your app is blissfully ignorant of what is going on under the covers.
If app-level changes are required in a pure Java app, then you have a
broken JVM (unless, of course, your code is not thread safe but just
happens to work correctly under green threads :-).
If you have JNI-accessed multi-threaded code, however, you probably do
need to be aware of the underlying threading model. I've never had to
write any JNI code, so I'm not familiar with any of the details here.
>
> regards
> wilson
>
Craig McClanahan
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html