发新话题
打印

问cs-sub 91test的一些问题,请headlong帮忙

问cs-sub 91test的一些问题,请headlong帮忙

12.Which of the following statemengts describe properties of a purely segmented memory system?
1 O7 W; }; j3 ?! L/ FI.It divides memory into units of equal size.
5 |# u( D3 m# L3 |II.It permits implementation of virtual memory.
% \+ T' E* ]9 f8 \III.It suffers from internal fragmentation6 S' @/ O" M! A6 u2 H# S
(A) I only/ \& L6 k7 v0 H
(B)II only
& A  O- N2 A2 d* D. U2 R(C)III only
) p7 d3 w3 o' d. R3 w& Z(D)I and III4 r) j; Q  Y/ ]* A) X% q
(E)II and III% `# C0 j9 a. N2 H
答案是(B),可是III为什么不对呢,如果段的长度不是任意的,我觉得III也是有可能的  q/ `! K+ @$ D2 y& q7 c
################################################################################! b& \8 m& y- k4 M1 h/ q
14.procedure Insert(s:SetType;i:integer);
) [' b; X) V9 D/ l# o% z(* Precondition i不属于s0,where s0 denotes the value of s *)! @; x" ?' E: S* Y
(* Postcondition:s is the union of s0 and the single set {i} *)/ u5 ]2 r: l6 o$ G4 N- e" U
Which of the following statements is true concering the call Insert(s,i)?
8 X0 _' W7 M- o. B1 p. X% L7 fI if the precondition is met,then,upon return from the call to Insert,the size of s will have increased by 1.
5 Z! u4 f3 E0 @9 VII The writer of any code that includes a call to Insert can assume i is not in s prior to the call- y2 t* _7 S: Q: y
III The writer of any code for the body of Insert can assume i is not in s upon entrance to the procedure.% V- o) @% R' y% ?
(A) I noly (B)II only (C) III only (D) I and II (E) I and III0 v7 z% F" N$ f  `0 ~" d
答案是(E),这道题的题意我不明白( G- T3 }' g/ z- _
###########################################################################* C; r8 E" ]3 q; I, r+ M
20 A sequential circuit emits a 1 if and only if a 1 has just been received and the system has received an even number of 0's and an even number of 1's since it was reset.The system resets on emiting a 1.Which of the following is a possible state diagram for this circuit,where A is the initial(start)state
7 z/ g; Z! k+ V) u/ v4 r" v(图我就不画了)0 n& [, _$ s5 P4 y& K- w9 o
答案是(E),我不懂它的题意,这种题应该怎么做呢?) A6 U0 X! e- c5 F7 s
#########################################################################
/ `6 V$ @' o0 C9 ?3 d21.Which of the following statemengts about circuits is true?4 }7 c% f0 U* U7 ?; \# p
I.Combinational circuits may have feedback;sequential circuits do not3 q9 c- o  J! W: T' L: b
IICombinational circuits have a "memoryless" property;sequential circuits do not
5 U0 x2 g$ P5 O3 N1 Z3 m4 Q; T5 \III Both sequential and combinational circuits must be controlled by an external clock
% }5 x6 C! R, _7 y(A)I only
6 \% }+ f9 f. R# j- }(B)II only. P0 l$ {5 b3 Y5 B- ?; d/ O+ u: A+ N
(C)I and II only' ?$ Q! {3 O9 h5 G- Q/ h
(D)II and III only
6 ^/ w% e: @$ T. ^) {  b(E)I,II,and III
2 E( O1 e  o. T$ V; {答案是(B)
$ `, m9 Y/ k6 y$ a- O- \3 jI为什么不对阿?II中的"memoryless""property是什么意思?
6 Y& I% w2 M! K0 y做这种题需要复习数电么?可是我觉得数电好像也没有这些内容阿?
% Q, f1 `! L$ z9 j& d+ u#############################################################################/ |6 y& U% ^. _9 M6 m$ j  s
24.Suppose sharing of files in a multilevel directory structure is achieved with directory entries that are links pointing to a node containing information about a shared file.Information in this node include (1)the owner of the file(2)a count of the number of links to the file,and (3)the disk block numbers of the file.What is a primary drawback to this approach to sharing?2 h2 r) Z3 u" l# H" v4 o. ?
(A) If the owner modifies the file,another user who does not share will see the changes
! g4 t% A/ y4 M" x4 ?) u. b(B)If the owner renames the file,other users will not be able to access it$ V- j, o/ E+ ^/ v" I
(C)If the owner is allowed to delete a file,dangling links may result# F: \' E# o: y, W
(D)If any user who shares the file appends to it,others who share it will not be able to access the new disk blocks./ s( P  g5 @2 k6 D/ Z
(E)The system cannot know when blocks of a file can be reclaimed.
+ y2 F+ H5 T4 ~3 @7 O5 O$ c答案选(C),我不太明白,这道题怎么做,需要哪些知识?
3 k' }# K7 [) U5 H###########################################################################! ]% T. h# w3 G% `0 g  C
25.Which of the following considerations applies(apply) to choosing the page size in a paging system?7 Q9 M, j. k4 ?. b& k# G
I An advantage of larger pages is that they lead to smaller page tables, n9 Y! ?* p( d; S0 d, d4 d
II An advantage of smaller pages is that they lead to less waste due to internal fragmentation! ^" _6 `( l2 r9 J8 i4 B+ T
III Normally,the dominant factor in disk access time is not dependent on page length,so longer pages can be used advantageously.
/ ], f, V/ i/ s  \(A)I only (B)II only (C)I and III only (D) II and III only (E) I,II,and III
" a3 I, e' H8 ~. H5 M) R6 a# H7 M答案是(E),我不明白为什么III是对的
1 w$ n: t+ [! q' E/ A! ^# t

TOP

问cs-sub 91test的一些问题,请headlong帮忙

这里有这么多牛人可以回答,指定我来回答多不好意思。
# ]- D( i% M( W* P+ Y2 a- kGR9129.12
+ n  L, _) k2 u# l8 A4 L" U见OPERATING SYSTEMS, Internals and Design Principles (THIRD EDITION), 35.00 RMB, Tsinghua Press, by William Stallings。internal fragmentation在Page 295,本题请参考Page 293的表。$ G1 Y" F8 z, e+ N' G/ \1 l+ E2 X
GR9129.14* C4 I$ U( E; @* I5 r& M
新概念,非常简单,在真题开头部分的Notations and Conventions中有说明。
, V) f, L- l" z/ d对于选项II,i不在s中是Insert的precondition,但需要由程序员在调用Insert前要实现的先决条件,不是已经满足的条件。对于编制Insert的程序员,precondition是程序的其它部分在调用Insert前都会满足的前提条件,所以选项III正确。
! o) e+ R: K& qGR9129.200 P" c) X  f& D# |
根据真题开头部分的Notations and Conventions,在状态转换图的状态转换箭头上,标出的a/b表示遇到的输入符号a时进行状态转换,并且输出符号b。选项A不能判断奇偶情况,选项B、C不能识别011,选项D不能识别101。由于需要判断输入的0的个数的奇偶性和1的个数的奇偶性,正确的状态转换图应当有4个状态。% y0 y+ G4 ^2 ~( ~1 I
GR9129.21
4 R4 e4 g" h* M, D7 e% P9 T/ M. hCombinational circuits指没有flip-flop的门电路的组合,sequential circuits指含有flip-flop的电路。相关内容在COMPUTER SYSTEM ARCHITECTURE (THIRD EDITION), 28.00 RMB, Tsinghua Press, by M. MORRIS MANO Page 18, 28。
9 I  ~2 b8 S# K; }% S1 ^5 X4 eGR9129.24& L5 @4 l7 [, M2 A% C; }+ x5 O3 Z1 E- l
只有count为0的文件才可以允许被删除。但是如果owner具有的权限可以不顾count的值,直接删除文件时,指向该文件的访问都将指向无效指针,变成dangling links。  a2 ^/ R* u' a/ v0 U* q
GR9129.25
. [0 H: O. Y7 @* w! P$ o" p. ~对于选项III,通常访问磁盘时的seek time、latency time等与机械动作相关的速度参数比访问内存的速度参数(如page length)大几个数量级。
3 h5 J! _, g0 x" }英文专业名词,例如internal fragmentation等,可以直接查原版课本后面的词汇表。

TOP

发新话题