3 This example is a very simple example, showing how to use the Kokyu
4 dispatcher to dispatch command objects in a EDF manner. The test
5 configures the Kokyu dispatcher with a single EDF lane. Typically this
6 would be done by an EDF scheduler which assigns priorities to tasks
7 based on the deadlines for tasks. To ensure that the command objects
8 enqueued in the dispatcher are dispatched in the correct order, we
9 enqueue the command objects and *then* activate the dispatcher. Only
10 when the dispatcher is activated, the thread watching each dispatch
15 ./test -p<fifo|rr|other>
17 The following is the expected output
19 Deadline of command1 is 1065966081
20 Deadline of command2 is 1065966131
21 Deadline of command3 is 1065966031
26 Note that the deadlines are absolute deadlines.