[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]

,

FRAtlE(J) = AFTER(END) = BEFORE(K) = END END =

TI = AFTER(FRONT)

BEFORE(TI) = G

AFTER(FRONT) « 0

FRONT = TI

FAULT(I) = 1

TOTAL - TOTAL t 1 160 CONTINUE 170 CONTINUE

WRITE (6,900) FRAMES,PAGES 900 0(1,390 , 1 9 LRU ,1,1?. .13,8 )

WRITE (6,950)

950 F0RHAT(1HD,37HCTP0KA , 1 8 )

WHITE (6,1QQQ) (REF( I) ,I=1,N) WRITE (6,1000) (FAULT(1),I=1,N) 1000 FORMAT(1HO,40I3)

=.FRAMES= -

TOTAL . TOTAL - FRAMES RATE = FLOAT(TOTAL) / (N-FRAHES) WRITE (6,1010) TOTAL,RATE 1D10 FDRHAT(1H0,2m ,13,11 , 1 7 ,6.)

RETURN END



LFU . FREQ, FREQ{/C) . , /, FREQ(y). , , , , . ENTER, ENTER (/) J , . . REF(/)=/C , ENTER (/()=/. . 5.4.4.

. N (TOTAL) . (TOTAL - FRAMES)/(/-FRAMES), FRAMES - . TOTAL, FRAMES , FRAMES «», »

:

1. , , 20 . 6 , 14 - (. 5.4.5).

2. PAGES FRAMES, FRAMES 2 18 2 . FRAMES .

3. . «» , «» 20- 14 . , , . , . 5.4.5.

=-\- GO 400, ; , 12, 15 19 . , -, 2-19-2-15-2-12-2-3. , , , , -



SUBROUTINE LFU (REF.N,FRAMES.PAGES)

HEF(1).....REF(N) ,

=FRAMES= , =fAGES= . , LFU. REF(1)...REF(N), FAULT(1)...FAULT(N), FAULT(I)=1, REF(I) , FAULT(J)=0 . ,

===

REF(1)...REF(N)

FRAMES

PAGES

===

ENTER( I) FAULTd)

FRAMEd)

FREQII)

TABLE! I) TOTAL

1.

REFd) , =0

=J J I

I

=J I J, =D I

. REFd)...REF(N)

INTEGER REF(N).FRAMES,PAGES

I NT EG ER E NTE R(100),FAULT(10).FRAME(50J,FREQ(10OJ INTEGER TABLEdOD) .TOTAL

. 5.4.4. LFU.



[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.001