[0] [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] [44] [45] [46] [47] [48] [49] [50] [51] [52] [53] [54] [55] [56] [57] [58] [59] [60] [61] [62] [63] [64] [65] [66] [67] [68] [69] [70] [71] [72] [73] [74] [75] [76] [77] [78] [79] [80] [81] [82] [83] [84] [85] [86] [87] [88] [ 89 ] [90] [91] [92] [93] [94] [95] [96] [97] [98] [99] [100] [101] [102] [103] [104] [105] [106] [107] [108] [109] [110] [111] [112] [113] [114] [115] [116] [117]

J = 1

TOTAL =. Q

DO 10 I - 1,PAGES

TABLE!I) - a

FREQ(f) =

ENTERftJ * 0 10 CONTINUE

IW

DO 100 I = 1,

1-

- = REF(I)

FREQ(K) - FREQ(K) + 1

-

IF(TABLE(K) .NE. ) GO 2q GO 30

20 FAULT! I) =>

GO 10G

.

30. FAULT! = 1

TOTAL => TOTAL + 1

IF!J .GT. FRAMES) GO TO 40 GO TO 90

" 40 . 1

Ml =. FRAMEI1)

MIN = FREQ(MI)

DO 80 L =. 2, FRAMES Ll = FRAME(L)

IF(MIN-FREQILI) ) 80,70,50 50 MIN = FREQ!L1)

60 H = L

Ml «.L1

GO TO 80

70 IF(ENTER(M1) - ENTER(LI) ) 80,80,60

80 continue



.

= FRAME () f«AK£(M) .= ENTER(K) =. I TABLE() » TABLE(JI) - GO 10Q

90 TABLE<K) - J

F«AHE<J) -. E«TEfi<H) - 1 J - J ♦ 1

100 CONTtNUE .

WRITE (6,900) FRAMES .PACES 900 0(1.39 , . 1 9H.LfU ,13,12« .I3.8H )

WRITE (6,950)

950 F0RHATi1W.37HCTP0KA +, 1 6 )

WRITE (6,1J30flJ ( 13. I.I.N) WaiT£ (,6,MflO) .IFAULTJD.I-I.N) 1000 FQRMAT(1H0,4Dl3)

=FRAHES= -

TOTAL = TOTAL = FRAMES RATE = FLOAT(TOTAL) / (N-FRAHES) WRITE (6.1010) TOTAL,RATE ICIO F0RMAT(1HC.21H ,I.3,10H A , 1 7 ,F6.3)

RETURN



7 8 9 10 11 12 13 14 15 16 17 18 19 20

= + GO 400

400 I = I + 1

. , , , . , , :

1. 98% ; 2% .

2. « ». . 0.50, 0.25, 0.125, 0.0625, 0.03125 . .

3. , 98% . 2% .

4. iV= 10 , .

. 5.4.6 , , . . 5.4.7 . , LRU RANDOM, FIFO LFU - , .

. 5.4.5. , 6 14 .

5.4

5.4.1. , . 5.4.1, .



[0] [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] [44] [45] [46] [47] [48] [49] [50] [51] [52] [53] [54] [55] [56] [57] [58] [59] [60] [61] [62] [63] [64] [65] [66] [67] [68] [69] [70] [71] [72] [73] [74] [75] [76] [77] [78] [79] [80] [81] [82] [83] [84] [85] [86] [87] [88] [ 89 ] [90] [91] [92] [93] [94] [95] [96] [97] [98] [99] [100] [101] [102] [103] [104] [105] [106] [107] [108] [109] [110] [111] [112] [113] [114] [115] [116] [117]

0.0017