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
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 |
ERunDemo
public ERunDemo()
- Enabled:
main
public static void main(String[] args)
throws IOException
- Enabled:
IOException
comments?