Computer Architecture and Operating System

0.0(0)
studied byStudied by 1 person
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/41

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

42 Terms

1
New cards

Tree Directory

每個子目錄都可以有自己的子目錄並以此成為一樹狀結構,不允許共享

2
New cards

General Graph

每個目錄都可以指向另一目錄或檔案,可以共享,可以有cycle reference

3
New cards

Acyclic Graph

所有目錄都可以指向另一目錄或檔案,可以共享,需要追蹤reference count

4
New cards

Belady's Anomaly

More page->More page fault, occur in FIFO

5
New cards

Local and Global Replacement in Page

Local : Only swap with its own pages
Gobal : Can swap out other process's page(one thrashing might cause more thrashin)

6
New cards

RAID-0

No redundant, only speed up

7
New cards

RAID-1

Mirror for one disk

8
New cards

RAID-5

Can cover 1 disk failure, split the data into 3 disk use even odd parity

9
New cards

RAID-6

Just like RAID-5 but can toralent 2 disk failure

10
New cards

RAID-1+0 (RAID-10)

Use RAID-1 first then RAID-0, can also toralent 1 disk failure for each mirror set

11
New cards

Range for a n bits 2's complement number

-(2^{n-1})-(2^{n-1}-1)

12
New cards

BC

13
New cards

ABCD

14
New cards

BC

15
New cards

User和Kernel Thread不會共用哪些東西

Stack/PC/Register

16
New cards

A : Clock is not control signal

B : Data and Instruction Memory
C : Multi-Cycle can reuse hardware
D : Only 1 cycle pipeline need it.

17
New cards

Upon cache misses, to better utilize available hardware resources, CPU usually switches to execute other ready and waiting jobs.

False, cache miss penatly很小不會產生context switch

18
New cards

B 執行減法是二補數 所以最後要再加1 因此CarryIn=1

19
New cards

IEEE754 Denormalized number

mantissa全為0

20
New cards

IEEE754 Normalized Number

mantissa不全為1或0

21
New cards

Spin-Lock

A lock implemented by while loop, aka busy waiting

22
New cards

Processor Affinity

留在同一processor上 以獲得該processor的cache benefit,和load-balance相斥

23
New cards

Both reference bit and modify bit, if being 1, are closed to 0 on a circular round of the page replacement algorithm, as a way to give the second chance.

False, second chance algorithm will reset only reference bit

<p>False, second chance algorithm will reset <strong>only reference bit</strong></p>
24
New cards

mmap()

在虛擬記憶體和檔案之間建立一個映射,發生page fault時才會載入

25
New cards

A dynamically loaded kernel module will not be unloaded automatically by the kernel unless explicitly requested

False,閒置過久就會unload

26
New cards

ll(\text{load and linked}) and sc(\text{store conditional})

ll會在處理器中使用一位元監測該記憶體位置,而sc會根據從ll到sc使用間該記憶體位置是否有被修改,如果有則會寫入失敗

27
New cards

AC

28
New cards

True, 但實際為Copy on Write,要等到父或子process改動其data時才會複製

29
New cards

Anonymous Memory為沒有對應檔案的資料,如程式動態分配的記憶體(Heap),而storage-backed file有對應的檔案,因為可隨時重新讀取,所以除非該page是dirty的,不然不需要swap-back => True

30
New cards

False,page fault由CPU或Memory Management Unit(MMU)發起,非user process

31
New cards

A. True

B. 在WINDOWS下是必須的,但在UNIX不是

C. True

D. 只有使用者會使用到的需要,其他如swap-out space不用

32
New cards

Addressing Modes in MIPS

Register/Direct/Base/PC-Relative/Pseudo-Direct

33
New cards

False, jump可以跳轉到的位置為該PC所在的block內所有位置,和相對位置無關

34
New cards

MIPS

\frac{ClockRate}{CPI*10^{6}}

35
New cards

A fully-associative cache doesn't have conflict miss

True,要有index才會有conflict

36
New cards

IEEE754 Single Precision

1 for sign
8 for mantissa

23 for fraction

37
New cards

D

38
New cards

A
C:在硬體上虛擬層,純軟體

D:要透過Host OS執行的虛擬軟體

39
New cards

B
C:每個執行緒可以複製一份變數為自己所有

40
New cards

B
stack algorithm為一種類型其中包含optimal/LRU

41
New cards

The effectiveness of demand paging is proportional to the page fault rate

True,demand paging的有效存取時間為(1-p)*MA+p*PFR

42
New cards

Difference between Deadlock Prevention/Avoidance

Prevention破壞四個條件
Avoidance如Banker's Algorithm