readme
来自「ace开发环境 用来开发网络程序 其运用了设计模式、多平台、C++等多种知识」· 代码 · 共 25 行
TXT
25 行
This example is a very simple example, showing how to use the Kokyudispatcher to dispatch command objects in a EDF manner. The testconfigures the Kokyu dispatcher with a single EDF lane. Typically thiswould be done by an EDF scheduler which assigns priorities to tasksbased on the deadlines for tasks. To ensure that the command objectsenqueued in the dispatcher are dispatched in the correct order, weenqueue the command objects and *then* activate the dispatcher. Onlywhen the dispatcher is activated, the thread watching each dispatchqueue starts running.To run this example, ./test -p<fifo|rr|other>The following is the expected outputDeadline of command1 is 1065966081Deadline of command2 is 1065966131Deadline of command3 is 1065966031command 3 executedcommand 1 executedcommand 2 executedNote that the deadlines are absolute deadlines.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?