Time to reconsider m:n or green threading options?
John.Rose at Sun.COM
Mon Jun 23 14:15:50 PDT 2008
On Jun 21, 2008, at 4:58 AM, Charles Oliver Nutter wrote:
> I would want the JVM to provide the current thread APIs but
> backed by a smaller number of native threads. I want to be able to
> up 10k or 100k java.lang.Thread instances :)
It's a hard puzzle (but maybe a good one) to make the current JVM
thread API fit on top of really lightweight threads. Do you think
green threads are really light enough? I suspect not, though maybe
you could do 100k. But when you get to event clouds with 1M or 10M
actors, green threads (which inherently seem to occupy many kilobytes
of memory and address space) will start to look sluggish.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the mlvm-dev