[Fwd: Java]

David Gobbi dgobbi at irus.rri.on.ca
Fri Mar 31 16:00:44 EST 2000


Hi Eduardo,

I'm using jdk-1.1.8 with green threads under Linux and VTK compiled with
pthreads without any conflicts (I had to edit system.make after running
configure in order to enable pthreads, configure will disable pthreads if
you use --with-java for the reasons that Dan explains below). 

So, between me & Dan's experiences with JDK, it looks like you shouldn't
have any problems, you will just have to edit system.make yourself to
enable pthreads in VTK.  The fact that Java uses green threads and
VTK uses pthreads should not cause any problems -- unless there are
the symbol conflicts during complilation which Dan says used to
happen with older JDK's.

FYI, the jdk I'm using is the Blackdown distribution, which is the
ancestor to Sun's Linux JDK.

 - David

--
  David Gobbi, MSc                    dgobbi at irus.rri.on.ca
  Advanced Imaging Research Group
  Robarts Research Institute, University of Western Ontario

On Fri, 31 Mar 2000, Eduardo Kortright wrote:

> "Daniel J. Blezek, Ph.D." wrote:
> > 
> [...]
> >   The mis-feature in removing threads when compiling with Java was
> > actually a necessity.  In previous (<1.2.2) versions of Java, JDK used is
> > own "green-threads" which weren't compatable with pthreads.  So pthreads
> > lost out when using Java.  The configur.in file was changed in Aug 97, and
> > the situation has changed, at least in the latest JDK that I got from Sun.
> > If we can decide that pthreads and Java play well for everyone who is
> > using them, we could add the changes back in.  FYI, works fine under Linux
> > with JDK 1.2.2 & pthreads, but we need a suite of tests for the Java
> > bindings.
> > 
> > Thanks,
> > -dan
> 
> I'm confused.  The Java I (just a few minutes ago) got from Sun for
> Linux (J2SE) 
> specifically says that only green threads are supported.  Does that mean
> that green threads are now compatible with the pthreads used by VTK?
> 
> Among other things, this port of Java for Linux should not be run on SMP
> kernels 
> (which mine is), and does not include a JIT compiler.  Are you aware of
> another port
> of the JDK for Linux, or is this the same one you are using?
> 
> Thanks for any ideas you may have.  If this is not of interest to the
> list,
> please reply directly to me.
> 
> --
> Eduardo Kortright			Department of Computer Science
> eduardo at cs.uno.edu			University of New Orleans
> Voice: (504) 280-6626			Lakefront Campus 
> FAX:   (504) 280-7228			New Orleans, LA 70148
> --------------------------------------------------------------------
> This is the private VTK discussion list. Please keep messages on-topic.
> Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
> <majordomo at public.kitware.com>. For help, send message body containing
> "info vtkusers" to the same address.
> --------------------------------------------------------------------
> 

--------------------------------------------------------------------
This is the private VTK discussion list. Please keep messages on-topic.
Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at public.kitware.com>. For help, send message body containing
"info vtkusers" to the same address.
--------------------------------------------------------------------



More information about the vtkusers mailing list