Package kilim.examples
Class TimedTask
- java.lang.Object
-
- kilim.Task
-
- kilim.examples.TimedTask
-
- All Implemented Interfaces:
java.lang.Runnable,EventSubscriber,Fiber.Worker
public class TimedTask extends Task
Creates lots of tasks that print stuff, sleep, then wake up and print more. [compile] javac -d ./classes TimedTask.java [weave] java kilim.tools.Weave -d ./wlasses kilim.examples.TimedTask [run] java -cp ./wlasses:./classes:$CLASSPATH kilim.examples.TimedTask
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class kilim.Task
Task.Fork, Task.Invoke<TT>, Task.Spawn<TT>
-
-
Field Summary
-
Fields inherited from class kilim.Task
done, exitResult, fiber, id, pauseReason, running, scheduler, timer
-
-
Constructor Summary
Constructors Constructor Description TimedTask()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()static voidmain(java.lang.String[] args)-
Methods inherited from class kilim.Task
checkKill, dump, equals, errNotWoven, errNotWoven, errorExit, errorExit, execute, exit, exit, fork, getCurrentTask, getExecutionThread, getPauseReason, getScheduler, getStackDepth, getState, getTid, hashCode, id, idledown, informOnExit, invoke, isDone, join, joinb, onEvent, pause, pause, pinToThread, prePin, resume, resumeOnScheduler, run, setPauseReason, setScheduler, setTid, shutdown, sleep, spawn, spawn, start, toString, unpinFromThread, yield, yield
-
-