intBuffSize VARIABLE 10
intSrvTime VARIABLE 5
extBuffSize VARIABLE 5
extSrvTime VARIABLE 10
intTime TABLE M1,0,1,50
p1Time TABLE M1,0,1,50
p2Time TABLE M1,0,1,50
GENERATE(Exponential(1,0,30)
input TEST L Q$intBuffV$intBuffSize.out
QUEUE intBuff
SEIZE intProc
DEPART intBuff
ADVANCE V$intSvrTime
RELEASE intProc
TABULATE intTime
TEST L Q$Buff1,Q$Buff2,part2
part1 TEST L Q$Buff1,V$extBuffSize,out
QUEUE Buff1
SEIZE Proc1
DEPART Buff1
ADVANCE V$extSvrTime
RELEASE Proc1
TABULATE p1Time
TRANSFER out
part2 TEST L Q$Buff2,V$extBuffSize,out
QUEUE Buff2
SEIZE Proc2
DEPART Buff2
ADVANCE V$extSvrTime
RELEASE Proc2
TABULATE p2Time
TERMINATE 1
START 1000000
Do'stlaringiz bilan baham: |