readme
来自「这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用」· 代码 · 共 58 行
TXT
58 行
ThreadPool example for RT-Notification
======================================
This example has 1 Supplier and 2 Consumers.
The supplier sends an different event to each of the consumers in a
supplier thread continuously.
One of the consumers has 1 second delay in its push method.
let us call it the "slow" consumer and the other consumer - the "fast" consumer.
If no threadpools are used then the throughput of both consumers is ~1
event per second.
We deploy a threadpool at each proxysupplier.
This causes each consumer to have a seperate data path.
Hence the fast consumer finishes first without any interference from
the slow consumer.
Command Line Options
====================
Supplier:
--------
-Consumers count
-Event_Channel_ThreradPool static_threads
-ProxyConsumer_ThreadPool static_threads
-IORoutput ior_file
-MaxEvents count
Consumer:
--------
-ProxySupplier_ThreadPool static_threads
-MaxEvents count
-Delay seconds
Running the example
===================
Simply run the run_test.pl file.
The run_test.pl file has options that can be modified to run the
example with threadpools deployed at different points.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?