深入理解计算机操作系统第六章家庭作业

6.22

0.5

6.23

6.005ms

6.24

A: 16ms
B: 24s

6.25

m c B E S t s b
32 1024 4 4 64 24 6 2
32 1024 4 256 1 30 0 2
32 1024 8 1 128 22 7 3
32 1024 8 128 1 29 0 3
32 1024 32 1 32 22 5 5
32 1024 32 4 8 24 3 5

6.26

m c B E S t s b
32 2048 8 1 256 21 8 3
32 2048 4 4 128 23 7 2
32 1024 2 8 64 25 6 1
32 1024 32 2 16 23 4 5

6.27

A: 0x08A4 - 0x08A7, 0x0704 - 0x0707
B: 0x1238 - 0x123B

6.28

A.
None

B.
0x18F0 - 0x18F3
0x00B0 - 0x00B3

C.
0x0E34 - 0x0E37

D.
0x1BDC - 0x1BDF

6.29

A.

      11   10    9    8    7    6    5    4    3    2    1   0
    +----+----+----+----+----+----+----+----+----+----+----+----+
    | CT | CT | CT | CT | CT | CT | CT | CT | CI | CI | CO | CO |
    +----+----+----+----+----+----+----+----+----+----+----+----+

B.

read/write addr hit? value(or unknown)
read 0x834 No unknown
write 0x836 No unknown
read 0xFFD Yes 0xC0

6.30

A.

C = E * B * S = 128B

B.

  12   11   10    9    8    7    6    5    4    3    2    1   0
+----+----+----+----+----+----+----+----+----+----+----+----+----+
| CT | CT | CT | CT | CT | CT | CT | CT | CI | CI | CI | CO | CO |
+----+----+----+----+----+----+----+----+----+----+----+----+----+

6.31

A.

  12   11   10    9    8    7    6    5    4    3    2    1   0
+----+----+----+----+----+----+----+----+----+----+----+----+----+
|  0 |  0 |  1 |  1 |  1 |  0 |  0 |  0 |  1 |  1 |  0 |  1 |  0 |
+----+----+----+----+----+----+----+----+----+----+----+----+----+

B.

param value
CO 0x02
CI 0x06
CT 0x38
hit? Yes
return 0xEB

6.32

A.

  12   11   10    9    8    7    6    5    4    3    2    1   0
+----+----+----+----+----+----+----+----+----+----+----+----+----+
|  1 |  0 |  1 |  1 |  0 |  1 |  1 |  1 |  0 |  1 |  0 |  0 |  0 |
+----+----+----+----+----+----+----+----+----+----+----+----+----+

B.

param value
CO 0x00
CI 0x02
CT 0xB7
hit? No
return --

6.33

0x1788 - 0x178B
0x16C8 - 0x16CB

6.34

src:

c0 c1 c2 c3
r0 m m h m
r1 m h m h
r2 m m h m
r3 m h m h

dst:

c0 c1 c2 c3
r0 m m m m
r1 m m m m
r2 m m m m
r3 m m m m

6.35

src:

c0 c1 c2 c3
r0 m h h h
r1 m h h h
r2 m h h h
r3 m h h h

dst:

c0 c1 c2 c3
r0 m h h h
r1 m h h h
r2 m h h h
r3 m h h h

6.36

A.
100%

B.
25%

C.
25%

D.
no

E.
yes 12.5%

6.37

全是 25%

6.38

1024
128
12.5%

6.39

1024
256
25%

6.40

1024
256
25%

6.41

0.25

6.42

0.25

6.43

100%

6.45

循环展开

6.46

循环展开

你可能感兴趣的:(深入理解计算机操作系统第六章家庭作业)