3 # The number of messages to send.
6 # The number of high-priority consumers.
7 HP_CONSUMERS
="1 5 10 20"
9 # The number of high-priority suppliers
14 /bin
/rm -f NameService.ior NameService.pid EC1.pid EC2.pid EC.pid
16 for s
in $HP_SUPPLIERS; do
17 for c
in $HP_CONSUMERS; do
18 ..
/..
/Naming_Service
/Naming_Service \
19 -o NameService.ior
-p NameService.pid
>/dev
/null
2>&1 &
21 NameService
=`cat NameService.ior`
24 echo Consumers
= $c Suppliers
= $s
25 .
/EC_Multiple
-l ECM1
-p ECM1.pid
-s runtime \
26 -h ${s},${c},0,${HP_INTERVAL},${MSG_COUNT},1,2,1,2 > \
27 LTC.LCL.S
${s}.C
${c}.log
2>&1
28 kill `cat NameService.pid`
30 ..
/..
/Naming_Service
/Naming_Service \
31 -o NameService.ior
-p NameService.pid
>/dev
/null
2>&1 &
33 NameService
=`cat NameService.ior`
36 .
/EC_Multiple
-l ECM1
-r ECM2
-p ECM1.pid
-s runtime \
37 -h ${s},${c},0,${HP_INTERVAL},${MSG_COUNT},1,2,1,3 > \
38 LTC.ECM1.S
${s}.C
${c}.log
2>&1 &
39 .
/EC_Multiple
-l ECM2
-r ECM1
-p ECM2.pid
-s runtime \
40 -h ${s},${c},0,${HP_INTERVAL},${MSG_COUNT},4,3,4,2 > \
41 LTC.ECM2.S
${s}.C
${c}.log
2>&1 &
45 kill `cat NameService.pid`