summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/EC_Multiple/run_schedule
blob: 4a0be8475c8e4f87629fa1ebaba0b9bf9d90c4ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/sh
#
# $Id$
#

HP_MSG_COUNT=400
# The number of messages to send.

HP_CONSUMERS=25
# The number of high priority consumers.

HP_SUPPLIERS=10
# The number of high priority suppliers

LP_MSG_COUNT=10
# The number of messages to send.

LP_CONSUMERS=5
# The number of high priority consumers.

LP_SUPPLIERS=5
# The number of high priority suppliers

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

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

./EC_Multiple -ORBport 20010 -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 -ORBport 20020 -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`