wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Ch08-Deadlock

Total questions: 10

Worksheet time: 6mins

Name
Class
Date
1.

Deadlock成立的特徵為何(複選)?

a)

Mutual exclusion

b)

Hold and wait

c)

No preemption

d)

Circular wait

2.

Deadlock成立的要件中,「一次只有一個Thread/process 可以使用資源」是指?

a)

Mutual exclusion

b)

Hold and wait

c)

No preemption

d)

Circular wait

3.

Deadlock成立的要件中,「被占用的資源不能被搶奪使用,必須等到使用該資源的thread/process釋放」是指?

a)

Mutual exclusion

b)

Hold and wait

c)

No preemption

d)

Circular wait

4.

Deadlock成立的要件中,「必定有一個Thread/process 已經占用一個資源,且它同時等待另一個已被占用的資源」是指?

a)

Mutual exclusion

b)

Hold and wait

c)

No preemption

d)

Circular wait

5.

Deadlock成立的要件中,「Threads 集合元素存在T0->T1 -> T2 ->Tn->T0 關係」是指?

a)

Mutual exclusion

b)

Hold and wait

c)

No preemption

d)

Circular wait

6.

以下描述何者有錯?

a)

沒有發生Circular wait,就一定沒有Deadlock

b)

如果有Circular wait發生,若每個資源只有一個instance,一定會發生deadlock

c)

如果有Circular wait發生,若每個資源有一個以上instance,一定會發生deadlock

7.

下列何者為處理deadlock的方法?(複選)

a)

預防 ( deadlock prevention )

b)

避免 ( deadlock avoidance )

c)

偵測 deadlock後去復原

d)

忽略 deadlock發生

8.

Deadlock Prevention方法中,針對何種要件進行處理時,可能造成starvation?

a)

Mutual exclusion

b)

Hold and wait

c)

No preemption

d)

Circular wait

9.

使用Detection-Algorithm的時機為何?(複選)

a)

當有Process 要不到資源時

b)

固定一段期間執行

c)

CPU使用率降低時

d)

CPU使用率飆高時

10.

從deadlock 狀態回復的方法為何? (複選 )

a)

Process/Threads termination

b)

Resources non-preemption

c)

Resources preemption