sita wrote:
Hi,

 Say my java program creates 10 threads.

How are java threads are mapped in case of
unix-jthreads?

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 http://www.kaffe.org/cgi-bin/viewcvs.cgi/*checkout*/kaffe/FAQ/FAQ.jsignal?rev=HEAD
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)

cheers,
dalibor topic

_______________________________________________
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe

Reply via email to