readme
来自「这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用」· 代码 · 共 35 行
TXT
35 行
This example illustrates the working of a Kokyu
based DSRT scheduler. There are 2 threads waiting
for requests on the server side. Two threads are
started on the client side. The main thread as
well as the worker threads are given the maximum
priority so that their "release" happen immediately.
Each of the worker threads make a remote two-way
call to the server. The two requests are processed
in different threads on the server side.
On the client side, the first thread is given lesser
priority than the second thread and the second thread
is started a little later than the first. It is
expected that, on the server side, the first request
is processed by one of the two threads. When the
second request comes in, the other thread that processes
this request should become more eligible since the
second request carries more importance than the first.
A timeline is generated which shows the sequence of
execution of the two different threads on the server.
Make sure that you run in privileged mode.
To run the test using the CV-based approach (see ../README),
./server -d
./client -d -x
To run the test using the OS-based approach (see ../README),
./server -d -s
./client -d -x -s
The timeline is generated in timeline.txt
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?