hg: mlvm/mlvm/hotspot: 2 new changesets

Mark Roos mroos at roos.com
Sat Oct 1 18:03:31 PDT 2011


This is a pretty cool use of coroutines.

I am trying a similar approach for a web browser base UI and was looking 
for
a pattern do handle the time out case.  So I send something to the UI, say 
open
a dialog box, and suspend the coroutine.  but the UI never responds so I 
have to
have a loop checking time outs.

I would like something on the coroutine like suspend but throw an 
exception in
x ms.  I could do it with threads ( suspend a cancelling thread for x ms ) 
but I was
looking for a light weight approach.

Any thoughts on how to place a time out on a starved coroutine?

regards
mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/mlvm-dev/attachments/20111001/ac423862/attachment.html 


More information about the mlvm-dev mailing list