Search Header Logo

Ch06-Synchronization Tools_part01

Authored by 徐leo 徐leo

Computers

University

Used 2+ times

Ch06-Synchronization Tools_part01
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Process有分independent processes 和 cooperation processes,請問那一種會發生race condition?

independent processes

cooperation processes

2.

MULTIPLE SELECT QUESTION

1 min • 1 pt

cooperation processes發生race condition,主要原因是(複選)

processes的執行順序無法確定

優先權低的process永遠搶不到資源

processes共享記憶體變數

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

造成cooperation processes執行順序無法確定的主要原因是?

CPU number

Interrupt

Memory size

4.

MULTIPLE SELECT QUESTION

1 min • 1 pt

為何我們不直接關閉interrupt 解決race condition? (複選)

Interrupt無法關閉

關閉interrupt方法,在多核心CPU下不適用

關閉interrupt指令只能在Kernel mode執行,User 不能在程式直接呼叫

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

下面哪一個不是硬體支援processes做同步的選項

Peterson’s solution

Hardware instructions

Atomic variables

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Peterson’s solution 中有一個指令順序被編譯器重新排序,導致無法解決Race condition問題,請問可以用何種方式解決?

Memory barriers

Hardware instructions

Atomic variables

7.

MULTIPLE SELECT QUESTION

1 min • 1 pt

以下哪一個是屬於atomic hardware instructions(複選)

memory barrier()

test_and _ set()

compare_and_swap()

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?