>>>>> "Nelson" == Nelson Minar <[EMAIL PROTECTED]> writes:

> Newer Sun releases will be native threads only, not green threads. I
> asked why, and got two answers:
>   Hotspot assumes native threads, so a green threads version would be hard.
>   Thread management is the OS' job, not the application's.

I asked someone from the linux team (can't remember who - it'll come
to me) about two-tier threading for linux.  I was surprised to get an
"it's possible" answer rather than the usual "no way."  The basis of
the answer is that hotspot doesn't want to let the kernel have
completely free reign on native threads anyway, so he thought there
were already the hooks needed for a hybrid (java-native). 

> We talked a bit about the second point. I agree in principle, but
> Linux' native threads are just not up to the task. They're slow,
> heavy, and limited. Hong agreed they weren't great, but expressed
> optimism that things would improve. He said that he's been talking
> with the Linux thread implementors some, but hadn't been actively
> contributing fixes.
I think the best answer is to do the second tier threading in userspace
(best would be in glibc).  The kernel folks have some good points
about doing it the kernel but seem to have a mental block as to why
you'd *ever* want hundreds of threads in a single app.  Sadly, I
haven't come across anyone who really understands the need and is in
the position of doing something about it *and* is up to the task (I
know I'm not). 

Several times I've heard that the mozilla libs have a possible
implementation, but I don't know enough about 'em to tell if this is
true. 

cheers,
        -Michael Thome ([EMAIL PROTECTED])


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to