close

Вход

Забыли?

вход по аккаунту

?

Документ Microsoft Word

код для вставкиСкачать
Задание: очередь с приоритетом
Листинг:
1 ADR FUNCTION RN3 D4
0.25,1/0.5,2/0.75,3/1,4
4 ADR1 FUNCTION RN3 D8
0.10,1/0.20,2/0.30,3/0.40,4/0.50,5/0.70,6/0.80,7/1,8
10 generate 25,2
20 seize PC1
30 advance 6,2
40 release PC1
50 assign 1 1 ;otkogo
60 assign 2 FN$ADR ;komy
78 assign 3 FN$ADR1 ;prioritet
79 assign 4 1 ;zapros 1-my o-you
80 can1 seize Kan1
90 advance 3,1
100 release Kan1 110 transfer ,SW
120 generate 25,2
130 seize PC2
140 advance 6,2
150 release PC2
160 assign 1 2 170 assign 2 FN$ADR 180 assign 3 FN$ADR1 185 assign 4 1
190 can2 seize Kan2
200 advance 3,1
210 release Kan2 220 transfer ,SW
300 generate 25,2
320 seize PC3
330 advance 5,3
340 release PC3
350 assign 1 3 360 assign 2 FN$ADR 378 assign 3 FN$ADR1 379 assign 4 1
380 can3 seize Kan3
390 advance 3,1
400 release Kan3 410 transfer ,SW
480 SW seize SW
490 advance 3,1
500 release SW
505 test ne p3 1 LK1
510 test ne p3 2 LK2
520 test ne p3 3 LK3
535 test ne p3 4 LK4
540 test ne p3 5 LK5
550 test ne p3 6 LK6
565 test ne p3 7 LK7
570 test ne p3 8 LK8
580 exit terminate
610 LK1 link lnk0,FIFO
620 LK2 link lnk0,FIFO
630 LK3 link lnk1,FIFO
640 LK4 link lnk1,FIFO
650 LK5 link lnk2,FIFO
660 LK6 link lnk2,FIFO
670 LK7 link lnk3,FIFO
680 LK8 link lnk3,FIFO
710 GENERATE 1,1
730 TRANSFER ,ttt
740 ttt TEST NE CH$lnk0,0,next1
750 unlink lnk0,FS
760 transfer ,exit 840 next1 TEST NE CH$lnk1,0,next2
850 unlink lnk1,FS
860 transfer ,exit 940 next2 TEST NE CH$lnk2,0,next3
950 unlink lnk2,FS
960 transfer ,exit 1040 next3 TEST NE CH$lnk3,0,exit
1050 unlink lnk3,FS
1060 transfer ,exit 1110 FS test ne p2 1 h1
1130 test ne p2 2 h2
1140 test ne p2 3 h3
1150 test ne p2 4 h4
1155 terminate
1200 h1 seize Kan1
1210 advance 3,1
1220 release Kan1 1230 seize PC1
1240 advance 5,3
1250 release PC1
2160 test ne p4 0 exit
2170 assign 4 0
2180 transfer ,can1
2200 h2 seize Kan2
2210 advance 3,1
2220 release Kan2 2230 seize PC2
2240 advance 5,3
2250 release PC2
2260 test ne p4 0 exit
2270 assign 4 0
2280 transfer ,can2
2300 h3 seize Kan3
2310 advance 3,1
2320 release Kan3
2330 seize PC3
2340 advance 5,3
2350 release PC3
2360 test ne p4 0 exit
2370 assign 4 0
2380 transfer ,can3
2400 h4 seize Kan4
2410 advance 3,1
2420 release Kan4
2430 seize FS1
2440 advance 6,2
2450 release FS1
2470 assign 4 0
2500 seize Kan4
2510 advance 3,1
2520 release Kan4
2580 transfer ,SW
2601 generate 1000
2602 TERMINATE 1
2603 start 1
Моделирование:
GPSS/PC Report file REPORT.GPS. (V 2, # 37349) 05-14-2007 20:38:46 page 1
START_TIME END_TIME BLOCKS FACILITIES STORAGES FREE_MEMORY
0 1000 114 9 0 264336
NAME VALUE TYPE
COLUMN 10001 2
POSITION 10002 2
SHAPE 10003 2
ROW 10004 2
TO_COLUMN 10005 2
TO_ROW 10006 2
COLOR 10007 2
ADR 10008 2
ADR1 10009 2
PC1 10010 2
KAN1 10011 2
CAN1 9 3
SW 37 3
PC2 10014 2
KAN2 10015 2
CAN2 21 3
PC3 10017 2
KAN3 10018 2
CAN3 33 3
LK1 49 3
LK2 50 3
LK3 51 3
LK4 52 3
LK5 53 3
LK6 54 3
LK7 55 3
LK8 56 3
EXIT 48 3
LNK0 10029 2
LNK1 10030 2
LNK2 10031 2
LNK3 10032 2
TTT 59 3
NEXT1 62 3
FS 71 3
NEXT2 65 3
NEXT3 68 3
H1 76 3
H2 85 3
H3 94 3
H4 103 3
KAN4 10042 2
FS1 10043 2
GPSS/PC Report file REPORT.GPS. (V 2, # 37349) 05-14-2007 20:38:46 page 2
LINE LOC BLOCK_TYPE ENTRY_COUNT CURRENT_COUNT RETRY
10 1 GENERATE 39 0 0
20 2 SEIZE 39 0 0
30 3 ADVANCE 39 0 0
40 4 RELEASE 39 0 0
50 5 ASSIGN 39 0 0
60 6 ASSIGN 39 0 0
78 7 ASSIGN 39 0 0
79 8 ASSIGN 39 0 0
80 CAN1 SEIZE 65 0 0
90 10 ADVANCE 65 0 0
100 11 RELEASE 65 0 0
110 12 TRANSFER 65 6 0
120 13 GENERATE 39 0 0
130 14 SEIZE 39 0 0
140 15 ADVANCE 39 0 0
150 16 RELEASE 39 0 0
160 17 ASSIGN 39 0 0
170 18 ASSIGN 39 0 0
180 19 ASSIGN 39 0 0
185 20 ASSIGN 39 0 0
190 CAN2 SEIZE 63 0 0
200 22 ADVANCE 63 0 0
210 23 RELEASE 63 0 0
220 24 TRANSFER 63 6 0
300 25 GENERATE 40 0 0
320 26 SEIZE 40 0 0
330 27 ADVANCE 40 0 0
340 28 RELEASE 40 0 0
350 29 ASSIGN 40 0 0
360 30 ASSIGN 40 0 0
378 31 ASSIGN 40 0 0
379 32 ASSIGN 40 0 0
380 CAN3 SEIZE 70 0 0
390 34 ADVANCE 70 0 0
400 35 RELEASE 70 0 0
410 36 TRANSFER 70 4 0
480 SW SEIZE 317 0 0
490 38 ADVANCE 317 1 0
500 39 RELEASE 316 0 0
505 40 TEST 316 0 0
510 41 TEST 245 0 0
520 42 TEST 228 0 0
535 43 TEST 155 0 0
540 44 TEST 127 0 0
550 45 TEST 107 0 0
565 46 TEST 55 0 0
570 47 TEST 35 0 0
580 EXIT TERMINATE 1066 0 0
610 LK1 LINK 71 0 0
620 LK2 LINK 17 0 0
GPSS/PC Report file REPORT.GPS. (V 2, # 37349) 05-14-2007 20:38:46 page 3
LINE LOC BLOCK_TYPE ENTRY_COUNT CURRENT_COUNT RETRY
630 LK3 LINK 73 0 0
640 LK4 LINK 28 0 0
650 LK5 LINK 20 0 0
660 LK6 LINK 52 0 0
670 LK7 LINK 20 0 0
680 LK8 LINK 35 0 0
710 57 GENERATE 993 0 0
730 58 TRANSFER 993 0 0
740 TTT TEST 993 0 0
750 60 UNLINK 88 0 0
760 61 TRANSFER 88 0 0
840 NEXT1 TEST 905 0 0
850 63 UNLINK 99 0 0
860 64 TRANSFER 99 0 0
940 NEXT2 TEST 806 0 0
950 66 UNLINK 72 0 0
960 67 TRANSFER 72 0 0
1040 NEXT3 TEST 734 0 0
1050 69 UNLINK 55 0 0
1060 70 TRANSFER 55 0 0
1110 FS TEST 316 0 0
1130 72 TEST 266 0 0
1140 73 TEST 221 0 0
1150 74 TEST 160 4 0
1155 75 TERMINATE 0 0 0
1200 H1 SEIZE 50 0 0
1210 77 ADVANCE 50 0 0
1220 78 RELEASE 50 0 0
1230 79 SEIZE 50 0 0
1240 80 ADVANCE 50 0 0
1250 81 RELEASE 50 0 0
2160 82 TEST 50 0 0
2170 83 ASSIGN 26 0 0
2180 84 TRANSFER 26 0 0
2200 H2 SEIZE 45 0 0
2210 86 ADVANCE 45 0 0
2220 87 RELEASE 45 0 0
2230 88 SEIZE 45 0 0
2240 89 ADVANCE 45 1 0
2250 90 RELEASE 44 0 0
2260 91 TEST 44 0 0
2270 92 ASSIGN 24 0 0
2280 93 TRANSFER 24 0 0
2300 H3 SEIZE 61 0 0
2310 95 ADVANCE 61 1 0
2320 96 RELEASE 60 0 0
2330 97 SEIZE 60 0 0
2340 98 ADVANCE 60 1 0
2350 99 RELEASE 59 0 0
2360 100 TEST 59 0 0
GPSS/PC Report file REPORT.GPS. (V 2, # 37349) 05-14-2007 20:38:46 page 4
LINE LOC BLOCK_TYPE ENTRY_COUNT CURRENT_COUNT RETRY
2370 101 ASSIGN 30 0 0
2380 102 TRANSFER 30 0 0
2400 H4 SEIZE 156 0 0
2410 104 ADVANCE 156 1 0
2420 105 RELEASE 155 2 0
2430 106 SEIZE 153 0 0
2440 107 ADVANCE 153 1 0
2450 108 RELEASE 152 0 0
2470 109 ASSIGN 152 6 0
2500 110 SEIZE 146 0 0
2510 111 ADVANCE 146 0 0
2520 112 RELEASE 146 0 0
2580 113 TRANSFER 146 11 0
2601 114 GENERATE 1 0 0
2602 115 TERMINATE 1 0 0
FACILITY ENTRIES UTIL. AVE._TIME AVAILABLE OWNER PEND INTER RETRYDELAY
37 317 0.951 3.00 1 210 0 0 0 27
PC1 89 0.466 5.24 1 0 0 0 0 0
KAN1 115 0.344 2.99 1 0 0 0 0 0
PC2 84 0.444 5.29 1 891 0 0 0 0
KAN2 108 0.329 3.05 1 0 0 0 0 0
PC3 100 0.485 4.85 1 874 0 0 0 0
KAN3 131 0.418 3.19 1 998 0 0 0 0
KAN4 302 0.909 3.01 1 964 0 0 0 10
FS1 153 0.904 5.91 1 821 0 0 0 2
USER_CHAIN CHAIN_SIZE RETRY AVE.CONT ENTRIES MAX AVE.TIME
LNK0 0 0 0.06 88 1 0.74
LNK1 0 0 0.07 101 2 0.71
LNK2 0 0 0.05 72 1 0.71
LNK3 0 0 0.04 55 1 0.65
XACT_GROUP GROUP_SIZE RETRY
POSITION 0 0
Документ
Категория
Рефераты
Просмотров
32
Размер файла
55 Кб
Теги
word, документы, microsoft
1/--страниц
Пожаловаться на содержимое документа