- All Implemented Interfaces:
- java.lang.Runnable, EventSubscriber, Fiber.Worker
public class SimpleTask
extends Task
Spawn a task, communicate through a shared mailbox. The task's
termination is known through another mailbox.
The structure of this class is not much different from a Thread
version that uses PipedInput/OutputStreams (Task instead of Thread,
execute() instead of run(), and typed, buffered mailboxes instead
of pipes).
[compile] javac -d ./classes SimpleTask.java
[weave] java kilim.tools.Weave -d ./classes kilim.examples.SimpleTask
[run] java -cp ./classes:./classes:$CLASSPATH kilim.examples.SimpleTask