[kaffe] kaffe thread system(unix-jthreads & unix-pthreads)
robilad at kaffe.org
Sat Aug 21 05:46:07 PDT 2004
> Say my java program creates 10 threads.
> How are java threads are mapped in case of
> In case of unix-pthreads, I know that the java thread
> is mapped to a native thread.
> when I type ps -ef | grep kaffe (using unix-pthreads),
> I can see more than one process id.
> (each thread is a process by the name pthread?)
Yeah, I think it maps threads 1:1 with pthreads.
> But in case of unix-jthreads, I don't see anything of
> that sort. Does kaffe maintain any internal thread?
> I just see something called jthread.
Yes, because kaffe uses time slicing to schedule threads. See
and http://www.cse.msu.edu/~korenson/kaffe1.html for a detaled reference.
pthreads is 1:1
jthreads is N:1 (like green threads, I think)
More information about the kaffe