>>>>> Michael Thome writes:
Michael> Obligatory Java-Linux subject: What I'd *really* like
Michael> (for my own application) is for VMs to support a hybrid
Michael> of green and native threads - e.g. a limited pool of
Michael> natives running a larger set of greens. Native threads
Michael> can be awfully expensive - we recently had a situation
Michael> where our system started raising out-of-memory exceptions
Michael> only under the windows VM: turns out that we had a burst
Michael> of thread creation that completely choked the windows
Michael> native thread system.
Michael> Haven't looked at the 1.1.7a diffs yet - anyone working
Michael> on something like this for Linux?
No, it isn't that easy to implement this inside the JDK. What
we really need is a pthreads implementation that uses a many-to-few
mapping from user threads to kernel entities. However this
requires some cooperation between the pthreads library and the kernel
but Linus said 'you don't need to add anything to the kernel to support
kernel based threads but clone()', unfortunately this results in the
current one-to-one mapping.
Juergen
--
Juergen Kreileder, Universitaet Dortmund, Lehrstuhl Informatik V
Baroper Strasse 301, D-44221 Dortmund, Germany
Phone: ++49 231/755-5806, Fax: ++49 231/755-5802