Time to reconsider m:n or green threading options?

John Rose 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  
> potentially
> backed by a smaller number of native threads. I want to be able to  
> spin
> 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.

-- John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/mlvm-dev/attachments/20080623/7a3b0ba2/attachment.html 


More information about the mlvm-dev mailing list