⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 run_schedule

📁 这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用于网络游戏医学图像网关的高qos要求.更详细的内容可阅读相应的材料
💻
字号:
#!/bin/sh
#
# run_schedule,v 1.3 1999/06/01 00:38:34 coryan Exp
#

# The number of high-priority messages to send.
HP_MSG_COUNT=400

# The number of high-priority consumers.
HP_CONSUMERS=25

# The number of high-priority suppliers
HP_SUPPLIERS=10

# The number of low-priority messages to send.
LP_MSG_COUNT=10

# The number of low-priority consumers.
LP_CONSUMERS=5

# The number of low-priority suppliers
LP_SUPPLIERS=5

/bin/rm -f NameService.ior NameService.pid EC1.pid EC2.pid EC.pid

../../Naming_Service/Naming_Service \
      -o NameService.ior -p NameService.pid >/dev/null 2>&1 &
sleep 2
NameService=`cat NameService.ior`
export NameService

./EC_Multiple -l ECM1 -r ECM2 -p ECM1.pid \
    -h ${HP_SUPPLIERS},${HP_CONSUMERS},1,${HP_MSG_COUNT},1,2,1,3 \
    -w ${LP_SUPPLIERS},${LP_CONSUMERS},1,${LP_MSG_COUNT},4,5,4,5 \
    -d SCHED_ECM1.cpp > SCH1.log 2>&1 &
./EC_Multiple -l ECM2 -r ECM1 -p ECM2.pid \
    -h ${HP_SUPPLIERS},${HP_CONSUMERS},1,${HP_MSG_COUNT},6,3,6,2 \
    -w ${LP_SUPPLIERS},${LP_CONSUMERS},1,${LP_MSG_COUNT},7,8,7,8 \
    -d SCHED_ECM2.cpp > SCH2.log 2>&1 &
sleep 2
wait `cat ECM1.pid`
wait `cat ECM2.pid`
kill `cat NameService.pid`

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -