[kaffe] Threads in Kaffe

Dalibor Topic robilad at kaffe.org
Tue Jun 29 03:08:42 PDT 2004


Hi Vijay,

Vijay Deep wrote:
> hi all
> 	I am working on a project which needs JVM to work without the
> support of Operating Systems. The JVM I am working with uses Pthreads of
> Linux and hence I am unable to compile it with a cross compiler. I wanted
> to know what threads kaffe uses. Is it green threads or Operating System
> threads. Green Threads work without the help of Operating Systems. I saw
> the latest Kaffe VM supports Pthreads.  So if any version of Kaffe uses
> green threads or any other threads which are independent of the Operating
> system please mention it, I shall use Kaffe JVM.

Kaffe has a OS-independant 'jthreads' implementation that uses signals 
for scheduling, it's used by default in all version I know, including 
1.0.7 and 1.1.4. See http://www.kaffe.org/doc/kaffe/FAQ.jsignal for 
details on the implementation, and system requirements

It also supports various native threading systems, like pthreads, or 
beos-threads. Since a lot of useful native code available via JNI uses 
pthreads, I'd like to make pthreads the default threading system eventually.

You can select the threading subsytem at configure time using the 
--with-threads option. --with-threads=unix-jthreads would pick up 
jthreads, for example.

best of luck with your project,
dalibor topic




More information about the kaffe mailing list