| Interface | Description |
|---|---|
| Userdata.Eats1 | |
| Userdata.Eats4 | |
| Userdata.Eats5 |
| Class | Description |
|---|---|
| Battle | |
| Chain |
Set up a chain of tasks.
|
| Ex |
Spawn a task, communicate through a shared mailbox.
|
| Fib |
This example prints the nth Fibonacci number.
|
| Group | |
| HeapBlast | |
| HttpFileServer |
A simple file server over http
Usage: Run java kilim.examples.HttpFileServer [base directory name] From a browser, go to "http://localhost:7262".
|
| PerfTest | |
| Ping |
Example showing kilim's support for NIO.
|
| Ping.Client |
The Client is a conventional Java socket application.
|
| Ping.Server |
Server is a SessionTask, which means an instance of it is created by the
NioSelectorScheduler on an incoming connection.
|
| Pure | |
| Pure.JavaDemo | |
| Pure.PureDemo | |
| Pure.PureDemos | |
| Pure.PureMega | |
| Pure.TaskDemo | |
| Reflect | |
| SimpleHttpServer |
A basic HTTP server that merely echoes the path and the query string supplied to it in a GET request
Usage: Run java kilim.examples.HttpFileServer [base directory name]
From a browser, try "http://localhost:7262/hello", "http://localhost:7262/buy?code=200&desc=Rolls%20Royce">"
SimpleHttpSession is an HTTPSession task, itself a thin wrapper over the socket connection.
|
| SimpleHttpServer.SimpleHttpSession | |
| SimpleTask |
Spawn a task, communicate through a shared mailbox.
|
| SimpleTask2 |
A slight extension to SimpleTask.
|
| Spawn |
Spawn example with one consumer, ten producers
|
| TimedTask |
Creates lots of tasks that print stuff, sleep, then wake up and print more.
|
| TimerBlast | |
| TimerBlast.Tick | |
| TimerBlast2 | |
| TimerBlast2.Info | |
| TimerBlast2.Tick | |
| Tree |
This example illustrates two 'generators' that walk a tree, one in pre-order
and another in post-order.
|
| Userdata | |
| Userdata.Eats1Impl | |
| Userdata.Eats2 | |
| Userdata.Eats3 | |
| Xorshift |
a demo and benchmark of kilim generators used to implement the xorshift PRNG
runs xorshift a number of cycles, printing the nanos per cycle and the xor of the result
the value is printed just to ensure that the JIT actually runs all the code
https://en.wikipedia.org/wiki/Xorshift#xorshift.2B
with modes to run the same algorithm as a Generator and as a raw Continuation (the default)
|
| Xorshift.X1 | |
| Xorshift.X2 |