Search Header Logo

Ch06-Synchronization Tools_part2

Authored by 徐leo 徐leo

Computers

University

Used 3+ times

Ch06-Synchronization Tools_part2
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 SELECT QUESTION

45 sec • 1 pt

下列哪一個是OS提供的同步工具?(複選)

memory barrier

mutex lock

semaphore

2.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

mutex lock 使用哪2個atomic function處理boolean variable?(複選)

wait ( )

acquire ( )

release ( )

signal ( )

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

以下對於busy waiting描述何者有誤?

process未能進入CS,只能不斷呼叫acquire( )或wait(),等待進入CS

搶不到CPU資源

執行過程是在浪費CPU資源

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

以下哪一個同步方法可以解決Busy waiting 問題?

memory barrier

semaphore

peterson's solution

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

以下哪一個對spinlock描述有誤?

是一種mutex lock

不須做context switch

沒有 busy waiting 問題

6.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

semaphore使用哪2個atomic function處理boolean variable?(複選)

wait ( )

acquire ( )

release ( )

signal ( )

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

以下哪一個是semaphore的正確使用方法?

wait (s);

critical section

signal (s);

wait (s);

critical section

wait (s);

signal (s);

critical section

wait (s);

signal (s);

critical section

signal (s);

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

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?