org.erights.e.elib.prim.tests
Class ERunDemo

java.lang.Object
  |
  +--org.erights.e.elib.prim.tests.ERunDemo

public class ERunDemo
extends Object

Untamed: Demonstrates (and trivially tests) ELib's event-loop concurrency style and its Ref-based optimism. Running "java org.erights.e.elib.prim.tests.ERunDemo" should result in

 <Eventual ref>, <Unresolved Resolver>, <Eventual ref>
 near: 4
 hello world, <Resolved Resolver>, 4
 
Which does happen under the Cafe debugger. Strangely, when run from bash we get instead:
 <Eventual ref>, <Unresolved Resolver>, <Eventual ref>
 hello world, <Resolved Resolver>, <Eventual ref>
 
So we've got a concurrency bug that doesn't occur under the debugger. Oh joy! Note: Early indications are that this bug's symptoms have disappeared with the move to Java 2. This isn't necessarily good news!

Author:
Mark S. Miller

Constructor Summary
ERunDemo()
          Enabled:
 
Method Summary
static void main(String[] args)
          Enabled:
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ERunDemo

public ERunDemo()
Enabled:

Method Detail

main

public static void main(String[] args)
                 throws IOException
Enabled:

IOException


comments?